Updating
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: archiver-api
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: archiver-api
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: archiver-api
|
||||
spec:
|
||||
containers:
|
||||
- name: archiver-api
|
||||
image: archiver-api
|
||||
resources:
|
||||
limits:
|
||||
memory: "1536Mi"
|
||||
cpu: "500m"
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
httpGet:
|
||||
path: /status
|
||||
port: 8080
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
httpGet:
|
||||
path: /status
|
||||
port: 8080
|
||||
volumeMounts:
|
||||
- name: volume-lcu-internal-cert
|
||||
mountPath: /etc/ssl/certs/lcu-internal-cert.pem
|
||||
subPath: lcu-internal-cert.pem
|
||||
- name: volume-appsettings
|
||||
mountPath: /app/config/mapped-appsettings
|
||||
- name: archiver-api-secrets
|
||||
mountPath: /vault/secrets/archiver-api-database-connection.json
|
||||
subPath: archiver-api-database-connection
|
||||
readOnly: true
|
||||
- name: archiver-api-secrets
|
||||
mountPath: /vault/secrets/archiver-api-seq-api-key.json
|
||||
subPath: archiver-api-seq-api-key
|
||||
readOnly: true
|
||||
- name: archiver-api-secrets
|
||||
mountPath: /vault/secrets/archiver-api-queue-username.json
|
||||
subPath: archiver-api-queue-username
|
||||
readOnly: true
|
||||
- name: archiver-api-secrets
|
||||
mountPath: /vault/secrets/archiver-api-queue-password.json
|
||||
subPath: archiver-api-queue-password
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: archiver-api-secrets
|
||||
csi:
|
||||
driver: secrets-store.csi.k8s.io
|
||||
readOnly: true
|
||||
volumeAttributes:
|
||||
secretProviderClass: archiver-api-csi-key-vault-secrets-provider
|
||||
- name: volume-lcu-internal-cert
|
||||
configMap:
|
||||
name: configmap-lcu-internal-cert
|
||||
- name: volume-appsettings
|
||||
configMap:
|
||||
name: archiverapi-configmap
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: archiver-api
|
||||
spec:
|
||||
selector:
|
||||
app: archiver-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,29 @@
|
||||
---
|
||||
apiVersion: secrets-store.csi.x-k8s.io/v1
|
||||
kind: SecretProviderClass
|
||||
metadata:
|
||||
name: archiver-api-csi-key-vault-secrets-provider
|
||||
spec:
|
||||
provider: azure
|
||||
parameters:
|
||||
usePodIdentity: "false"
|
||||
useVMManagedIdentity: "true"
|
||||
tenantId: 63cd1554-2783-4a86-ae50-b9e6c21c9499
|
||||
objects: |
|
||||
array:
|
||||
- |
|
||||
objectName: archiver-api-seq-api-key
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: archiver-api-database-connection
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: archiver-api-queue-username
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
- |
|
||||
objectName: archiver-api-queue-password
|
||||
objectType: secret
|
||||
objectVersion: ""
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: archiver-api
|
||||
spec:
|
||||
gateways:
|
||||
- istio-system/ingress-gateway
|
||||
http:
|
||||
- name: archiver-api
|
||||
match:
|
||||
- uri:
|
||||
prefix: /
|
||||
route:
|
||||
- destination:
|
||||
host: archiver-api
|
||||
port:
|
||||
number: 8080
|
||||
@@ -0,0 +1,8 @@
|
||||
resources:
|
||||
- ../../../base
|
||||
patchesStrategicMerge:
|
||||
- set_appsettings_deployment.yaml
|
||||
- set_secrets_provider_class.yaml
|
||||
images:
|
||||
- name: archiver-api
|
||||
newName: landmarkcu/lcu.api.internal.archiver-archiver
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: archiver-api
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: archiver-api
|
||||
env:
|
||||
- name: ASPNETCORE_ENVIRONMENT
|
||||
value: "Development"
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
apiVersion: secrets-store.csi.x-k8s.io/v1
|
||||
kind: SecretProviderClass
|
||||
metadata:
|
||||
name: archiver-api-csi-key-vault-secrets-provider
|
||||
spec:
|
||||
parameters:
|
||||
userAssignedIdentityID: 3286ed9a-f85c-4c50-b742-dbd3c1c3fe1f
|
||||
keyvaultName: kv-lz-apps-qa-uscz
|
||||
@@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- normal
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: archiverapi-configmap
|
||||
data:
|
||||
primary.json: |
|
||||
{
|
||||
"Primary": {
|
||||
"SeqUrl": "https://qa-seq.lcu-internal.com",
|
||||
"CorsAllowedOrigins": [
|
||||
"http://localhost:3000",
|
||||
"http://lcu-internal.com",
|
||||
"https://lcu-internal.com",
|
||||
"https://qa-api.lcu-internal.com"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
resources:
|
||||
- configmap.yaml
|
||||
- ../common
|
||||
patchesStrategicMerge:
|
||||
- set_virtual_service.yaml
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: archiver-api
|
||||
spec:
|
||||
hosts:
|
||||
- qa-archiver-api.apps.azure.lcu-internal.com
|
||||
@@ -0,0 +1,8 @@
|
||||
resources:
|
||||
- ../../../base
|
||||
patchesStrategicMerge:
|
||||
- set_appsettings_deployment.yaml
|
||||
- set_secrets_provider_class.yaml
|
||||
images:
|
||||
- name: archiver-api
|
||||
newName: landmarkcu/lcu.api.internal.archiver-archiver
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: archiver-api
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: archiver-api
|
||||
env:
|
||||
- name: ASPNETCORE_ENVIRONMENT
|
||||
value: "Production"
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
apiVersion: secrets-store.csi.x-k8s.io/v1
|
||||
kind: SecretProviderClass
|
||||
metadata:
|
||||
name: archiver-api-csi-key-vault-secrets-provider
|
||||
spec:
|
||||
parameters:
|
||||
userAssignedIdentityID: 9eaefc49-e5d3-48d4-a2b9-b42cf2d8ca03
|
||||
keyvaultName: kv-lz-apps-prod-uscz
|
||||
@@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- normal
|
||||
@@ -0,0 +1,25 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: archiverapi-configmap
|
||||
data:
|
||||
primary.json: |
|
||||
{
|
||||
"Primary": {
|
||||
"SeqUrl": "https://seq.lcu-internal.com",
|
||||
"NotificationApiEmail": "https://prd-notifications-api.apps.azure.lcu-internal.com/api/Email",
|
||||
"FileOperationApiBulkMoveFile": "https://fileoperationsapi.lcu-internal.com/api/FileOperations/BulkMoveFile",
|
||||
"FileOperationApiBuildDynamicFileList": "https://fileoperationsapi.lcu-internal.com/DynamicFile/BuildDynamicFileList",
|
||||
"FileOperationApiValidateFileExists": "https://fileoperationsapi.lcu-internal.com/FileValidation/ValidateFileExists",
|
||||
"CoreApiWrapperGetApplicationHistory": "https://prd-core-api-wrapper-api.apps.azure.lcu-internal.com/api/core/ApplicationHistory/GetApplicationHistory",
|
||||
"DnaBasePath": "\\\\D2dnamfs01p\\dnagold\\Prod\\OSI\\RPTS",
|
||||
"ErrorRecipients": [ "[email protected]" ],
|
||||
"FeatureFlags": {
|
||||
"RunArchiverConsumer": true,
|
||||
"RunResponseConsumer": true
|
||||
}
|
||||
},
|
||||
"ConnectionConfiguration":{
|
||||
"HostUrl": "rabbitmq.lcu-internal.com"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
resources:
|
||||
- configmap.yaml
|
||||
- ../common
|
||||
patchesStrategicMerge:
|
||||
- set_virtual_service.yaml
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: archiver-api
|
||||
spec:
|
||||
hosts:
|
||||
- prd-archiver-api.apps.azure.lcu-internal.com
|
||||
@@ -0,0 +1,8 @@
|
||||
resources:
|
||||
- ../../../base
|
||||
patchesStrategicMerge:
|
||||
- set_appsettings_deployment.yaml
|
||||
- set_secrets_provider_class.yaml
|
||||
images:
|
||||
- name: archiver-api
|
||||
newName: landmarkcu/lcu.api.internal.archiver-archiver
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: archiver-api
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: archiver-api
|
||||
env:
|
||||
- name: ASPNETCORE_ENVIRONMENT
|
||||
value: "Development"
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
apiVersion: secrets-store.csi.x-k8s.io/v1
|
||||
kind: SecretProviderClass
|
||||
metadata:
|
||||
name: archiver-api-csi-key-vault-secrets-provider
|
||||
spec:
|
||||
parameters:
|
||||
userAssignedIdentityID: 3286ed9a-f85c-4c50-b742-dbd3c1c3fe1f
|
||||
keyvaultName: kv-lz-apps-qa-uscz
|
||||
@@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- normal
|
||||
@@ -0,0 +1,25 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: archiverapi-configmap
|
||||
data:
|
||||
primary.json: |
|
||||
{
|
||||
"Primary": {
|
||||
"SeqUrl": "https://qa-seq.lcu-internal.com",
|
||||
"NotificationApiEmail":"https://qa-notifications-api.apps.azure.lcu-internal.com/api/Email",
|
||||
"FileOperationApiBulkMoveFile": "https://qa-fileoperationsapi.lcu-internal.com/api/FileOperations/BulkMoveFile",
|
||||
"FileOperationApiBuildDynamicFileList": "https://qa-fileoperationsapi.lcu-internal.com/DynamicFile/BuildDynamicFileList",
|
||||
"FileOperationApiValidateFileExists": "https://qa-fileoperationsapi.lcu-internal.com/FileValidation/ValidateFileExists",
|
||||
"CoreApiWrapperGetApplicationHistory": "https://qa-core-api-wrapper-api.apps.azure.lcu-internal.com/api/core/ApplicationHistory/GetApplicationHistory",
|
||||
"DnaBasePath": "\\\\zeus\\DataIntegrationsQA\\AutomicArchive\\TEST_DNA",
|
||||
"ErrorRecipients": [ "[email protected]" ],
|
||||
"FeatureFlags": {
|
||||
"RunArchiverConsumer": true,
|
||||
"RunResponseConsumer": true
|
||||
}
|
||||
},
|
||||
"ConnectionConfiguration":{
|
||||
"HostUrl": "qa-rabbitmq.lcu-internal.com"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
resources:
|
||||
- configmap.yaml
|
||||
- ../common
|
||||
patchesStrategicMerge:
|
||||
- set_virtual_service.yaml
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: archiver-api
|
||||
spec:
|
||||
hosts:
|
||||
- qa-archiver-api.apps.azure.lcu-internal.com
|
||||
@@ -0,0 +1,8 @@
|
||||
resources:
|
||||
- ../../../base
|
||||
patchesStrategicMerge:
|
||||
- set_appsettings_deployment.yaml
|
||||
- set_secrets_provider_class.yaml
|
||||
images:
|
||||
- name: archiver-api
|
||||
newName: landmarkcu/lcu.api.internal.archiver-archiver
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: archiver-api
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: archiver-api
|
||||
env:
|
||||
- name: ASPNETCORE_ENVIRONMENT
|
||||
value: "Staging"
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
apiVersion: secrets-store.csi.x-k8s.io/v1
|
||||
kind: SecretProviderClass
|
||||
metadata:
|
||||
name: archiver-api-csi-key-vault-secrets-provider
|
||||
spec:
|
||||
parameters:
|
||||
userAssignedIdentityID: 64ba01ed-1ecc-4c9b-b56e-8d618f2b81ce
|
||||
keyvaultName: kv-lz-apps-uat-uscz
|
||||
@@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- normal
|
||||
@@ -0,0 +1,25 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: archiverapi-configmap
|
||||
data:
|
||||
primary.json: |
|
||||
{
|
||||
"Primary": {
|
||||
"SeqUrl": "https://uat-seq.lcu-internal.com",
|
||||
"NotificationApiEmail": "https://uat-notifications-api.apps.azure.lcu-internal.com/api/Email",
|
||||
"FileOperationApiBulkMoveFile": "https://uat-fileoperationsapi.lcu-internal.com/api/FileOperations/BulkMoveFile",
|
||||
"FileOperationApiBuildDynamicFileList": "https://uat-fileoperationsapi.lcu-internal.com/DynamicFile/BuildDynamicFileList",
|
||||
"FileOperationApiValidateFileExists": "https://uat-fileoperationsapi.lcu-internal.com/FileValidation/ValidateFileExists",
|
||||
"CoreApiWrapperGetApplicationHistory": "https://uat-core-api-wrapper-api.apps.azure.lcu-internal.com/api/core/ApplicationHistory/GetApplicationHistory",
|
||||
"DnaBasePath": "\\\\zeus\\DataIntegrationsUAT\\AutomicArchive\\TEST_DNA",
|
||||
"ErrorRecipients": [ "[email protected]" ],
|
||||
"FeatureFlags": {
|
||||
"RunArchiverConsumer": true,
|
||||
"RunResponseConsumer": true
|
||||
}
|
||||
},
|
||||
"ConnectionConfiguration":{
|
||||
"HostUrl": "uat-rabbitmq.lcu-internal.com"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
resources:
|
||||
- configmap.yaml
|
||||
- ../common
|
||||
patchesStrategicMerge:
|
||||
- set_virtual_service.yaml
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: archiver-api
|
||||
spec:
|
||||
hosts:
|
||||
- uat-archiver-api.apps.azure.lcu-internal.com
|
||||
Reference in New Issue
Block a user