Updating
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: archiver-api
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
run: archiver-api
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
vault.hashicorp.com/agent-inject: "true"
|
||||
vault.hashicorp.com/agent-init-first: "true"
|
||||
vault.hashicorp.com/role: "archiver-api"
|
||||
vault.hashicorp.com/agent-inject-secret-archiverapi_configuration.json: "/secret/data/archiver-api/configuration"
|
||||
vault.hashicorp.com/agent-inject-template-archiverapi_configuration.json: |
|
||||
{{- with secret "/secret/data/archiver-api/configuration" -}}
|
||||
{
|
||||
"Primary":{
|
||||
"SeqApiKey": "{{.Data.data.SeqApiKey}}",
|
||||
"Connections": {
|
||||
"SQL": {
|
||||
"ArchiverApiDb": "{{.Data.data.ArchiverApiSqlConnectionString}}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ConnectionConfiguration": {
|
||||
"UserName": "{{.Data.data.QueueUserName}}",
|
||||
"Password": "{{.Data.data.QueuePassword}}"
|
||||
}
|
||||
}
|
||||
{{- end}}
|
||||
labels:
|
||||
run: archiver-api
|
||||
spec:
|
||||
serviceAccountName: svc-archiverapi
|
||||
containers:
|
||||
- name: archiver-api
|
||||
image: landmarkcu/archiver-api:{{version}}
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 80
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
httpGet:
|
||||
path: /status
|
||||
port: 80
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
httpGet:
|
||||
path: /status
|
||||
port: 80
|
||||
volumeMounts:
|
||||
- mountPath: /etc/localtime
|
||||
name: tz-config
|
||||
- name: volume-appsettings
|
||||
mountPath: /app/config/mapped-appsettings
|
||||
volumes:
|
||||
- name: tz-config
|
||||
hostPath:
|
||||
path: /usr/share/zoneinfo/America/Chicago
|
||||
type: "File"
|
||||
- name: volume-appsettings
|
||||
configMap:
|
||||
name: archiverapi-configmap
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: archiver-api
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /$2
|
||||
nginx.ingress.kubernetes.io/x-forwarded-prefix: "/archiver-api"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host:
|
||||
http:
|
||||
paths:
|
||||
- path: /archiver-api(/|$)(.*)
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: archiver-api
|
||||
port:
|
||||
number: 80
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: landmarkcu
|
||||
@@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: archiver-api
|
||||
labels:
|
||||
run: archiver-api
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
run: archiver-api
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: svc-archiverapi
|
||||
namespace: landmarkcu
|
||||
@@ -0,0 +1,6 @@
|
||||
resources:
|
||||
- ServiceAccount.yaml
|
||||
- Namespaces.yaml
|
||||
- Deployment.yaml
|
||||
- Service.yaml
|
||||
- Ingress.yaml
|
||||
@@ -0,0 +1,9 @@
|
||||
resources:
|
||||
- configmap.yaml
|
||||
bases:
|
||||
- ../../base
|
||||
patchesStrategicMerge:
|
||||
- set_appsettings_deployment.yaml
|
||||
- set_deployment_image.yaml
|
||||
- set_ingress_annotation.yaml
|
||||
namespace: landmarkcu
|
||||
@@ -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"
|
||||
@@ -0,0 +1,10 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: archiver-api
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: archiver-api
|
||||
image: local/archiver-api:1.0
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: archiver-api
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/x-forwarded-prefix: ":30000/archiver-api"
|
||||
@@ -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://api.lcu-internal.com/core-api-wrapper/api/core/ApplicationHistory/GetApplicationHistory",
|
||||
"DnaBasePath": "\\\\D2dnamfs01p\\dnagold\\Prod\\OSI\\RPTS",
|
||||
"ErrorRecipients": [ "[email protected]" ],
|
||||
"FeatureFlags": {
|
||||
"RunArchiverConsumer": false,
|
||||
"RunResponseConsumer": false
|
||||
}
|
||||
},
|
||||
"ConnectionConfiguration": {
|
||||
"HostUrl": "rabbitmq.lcu-internal.com"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
resources:
|
||||
- configmap.yaml
|
||||
bases:
|
||||
- ../../base
|
||||
patchesStrategicMerge:
|
||||
- set_appsettings_deployment.yaml
|
||||
namespace: landmarkcu
|
||||
@@ -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"
|
||||
@@ -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-api.lcu-internal.com/core-api-wrapper/api/core/ApplicationHistory/GetApplicationHistory",
|
||||
"DnaBasePath": "\\\\zeus\\DataIntegrationsQA\\AutomicArchive\\TEST_DNA",
|
||||
"ErrorRecipients": [ "[email protected]", "[email protected]" ],
|
||||
"FeatureFlags": {
|
||||
"RunArchiverConsumer": false,
|
||||
"RunResponseConsumer": false
|
||||
}
|
||||
},
|
||||
"ConnectionConfiguration": {
|
||||
"HostUrl": "qa-rabbitmq.lcu-internal.com"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
resources:
|
||||
- configmap.yaml
|
||||
bases:
|
||||
- ../../base
|
||||
patchesStrategicMerge:
|
||||
- set_appsettings_deployment.yaml
|
||||
namespace: landmarkcu
|
||||
@@ -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"
|
||||
@@ -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-api.lcu-internal.com/core-api-wrapper/api/core/ApplicationHistory/GetApplicationHistory",
|
||||
"DnaBasePath": "\\\\zeus\\DataIntegrationsUAT\\AutomicArchive\\TEST_DNA",
|
||||
"ErrorRecipients": [ "[email protected]", "[email protected]" ],
|
||||
"FeatureFlags": {
|
||||
"RunArchiverConsumer": false,
|
||||
"RunResponseConsumer": false
|
||||
}
|
||||
},
|
||||
"ConnectionConfiguration": {
|
||||
"HostUrl": "uat-rabbitmq.lcu-internal.com"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
resources:
|
||||
- configmap.yaml
|
||||
bases:
|
||||
- ../../base
|
||||
patchesStrategicMerge:
|
||||
- set_appsettings_deployment.yaml
|
||||
namespace: landmarkcu
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user