Adding
This commit is contained in:
@@ -0,0 +1,95 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: member-preferences-api
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: member-preferences-api
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: member-preferences-api
|
||||
spec:
|
||||
containers:
|
||||
- name: member-preferences-api
|
||||
image: member-preferences-api
|
||||
resources:
|
||||
limits:
|
||||
memory: "1536Mi"
|
||||
cpu: "500m"
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
httpGet:
|
||||
path: /api/status
|
||||
port: 8080
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
httpGet:
|
||||
path: /api/status
|
||||
port: 8080
|
||||
volumeMounts:
|
||||
- name: volume-lcu-internal-cert
|
||||
mountPath: /etc/ssl/certs/lcu-internal-cert.pem
|
||||
- name: volume-appsettings
|
||||
mountPath: /app/config/mapped-appsettings
|
||||
- name: member-preferences-api-secrets
|
||||
mountPath: /vault/secrets/member-preferences-api-member-preferences-api-key.json
|
||||
subPath: member-preferences-api-member-preferences-api-key
|
||||
readOnly: true
|
||||
- name: member-preferences-api-secrets
|
||||
mountPath: /vault/secrets/member-preferences-api-ftp-fingerprint.json
|
||||
subPath: member-preferences-api-ftp-fingerprint
|
||||
readOnly: true
|
||||
- name: member-preferences-api-secrets
|
||||
mountPath: /vault/secrets/member-preferences-api-ftp-password.json
|
||||
subPath: member-preferences-api-ftp-password
|
||||
readOnly: true
|
||||
- name: member-preferences-api-secrets
|
||||
mountPath: /vault/secrets/member-preferences-api-ftp-username.json
|
||||
subPath: member-preferences-api-ftp-username
|
||||
readOnly: true
|
||||
- name: member-preferences-api-secrets
|
||||
mountPath: /vault/secrets/member-preferences-api-queue-password.json
|
||||
subPath: member-preferences-api-queue-password
|
||||
readOnly: true
|
||||
- name: member-preferences-api-secrets
|
||||
mountPath: /vault/secrets/member-preferences-api-queue-username.json
|
||||
subPath: member-preferences-api-queue-username
|
||||
readOnly: true
|
||||
- name: member-preferences-api-secrets
|
||||
mountPath: /vault/secrets/member-preferences-api-db-connection.json
|
||||
subPath: member-preferences-api-db-connection
|
||||
readOnly: true
|
||||
- name: member-preferences-api-secrets
|
||||
mountPath: /vault/secrets/member-preferences-api-environment-from-vault.json
|
||||
subPath: member-preferences-api-environment-from-vault
|
||||
readOnly: true
|
||||
- name: member-preferences-api-secrets
|
||||
mountPath: /vault/secrets/member-preferences-api-seq-api-key.json
|
||||
subPath: member-preferences-api-seq-api-key
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: member-preferences-api-secrets
|
||||
csi:
|
||||
driver: secrets-store.csi.k8s.io
|
||||
readOnly: true
|
||||
volumeAttributes:
|
||||
secretProviderClass: member-preferences-api-csi-key-vault-secrets-provider
|
||||
- name: volume-lcu-internal-cert
|
||||
configMap:
|
||||
name: configmap-lcu-internal-cert
|
||||
- name: volume-appsettings
|
||||
configMap:
|
||||
name: memberpreferencesapi-configmap
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: member-preferences-api
|
||||
spec:
|
||||
selector:
|
||||
app: member-preferences-api
|
||||
ports:
|
||||
- port: 8080
|
||||
targetPort: 8080
|
||||
@@ -0,0 +1,5 @@
|
||||
resources:
|
||||
- Deployment.yaml
|
||||
- Service.yaml
|
||||
- virtual-service.yaml
|
||||
- secrets-provider-class.yaml
|
||||
@@ -0,0 +1,49 @@
|
||||
---
|
||||
apiVersion: secrets-store.csi.x-k8s.io/v1
|
||||
kind: SecretProviderClass
|
||||
metadata:
|
||||
name: member-preferences-api-csi-key-vault-secrets-provider
|
||||
spec:
|
||||
provider: azure
|
||||
parameters:
|
||||
usePodIdentity: "false"
|
||||
useVMManagedIdentity: "true"
|
||||
tenantId: 63cd1554-2783-4a86-ae50-b9e6c21c9499
|
||||
objects: |
|
||||
array:
|
||||
- |
|
||||
objectName: member-preferences-api-seq-api-key
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: member-preferences-api-environment-from-vault
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: member-preferences-api-db-connection
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: member-preferences-api-queue-username
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: member-preferences-api-queue-password
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: member-preferences-api-ftp-username
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: member-preferences-api-ftp-password
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: member-preferences-api-ftp-fingerprint
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: member-preferences-api-member-preferences-api-key
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: member-preferences-api
|
||||
spec:
|
||||
gateways:
|
||||
- istio-system/ingress-gateway
|
||||
http:
|
||||
- name: member-preferences-api
|
||||
match:
|
||||
- uri:
|
||||
prefix: /
|
||||
route:
|
||||
- destination:
|
||||
host: member-preferences-api
|
||||
port:
|
||||
number: 8080
|
||||
Reference in New Issue
Block a user