8317202e3d
Standardise the DB creation job name to service-db-init for all services.
33 lines
921 B
YAML
33 lines
921 B
YAML
{{- $envAll := . }}
|
|
{{- $dependencies := .Values.dependencies.init }}
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: keystone-db-init
|
|
spec:
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
pod.beta.kubernetes.io/init-containers: '[
|
|
{{ tuple $envAll $dependencies | include "dep_check_init_cont" | indent 10 }}
|
|
]'
|
|
spec:
|
|
restartPolicy: OnFailure
|
|
nodeSelector:
|
|
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
|
|
containers:
|
|
- name: keystone-db-init
|
|
image: {{ .Values.images.db_init }}
|
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
|
command:
|
|
- bash
|
|
- /tmp/init.sh
|
|
volumeMounts:
|
|
- name: keystone-bin
|
|
mountPath: /tmp/init.sh
|
|
subPath: init.sh
|
|
volumes:
|
|
- name: keystone-bin
|
|
configMap:
|
|
name: keystone-bin
|