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
|
||||
|
||||
Reference in New Issue
Block a user