36 lines
1021 B
YAML
36 lines
1021 B
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: nova-db-sync
|
|
spec:
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
{{ include "dep-check-init-cont-header" . | indent 8 }}
|
|
{{ include "dep-check-init-cont-footer" .Values.dependencies.db_sync | indent 8 }}
|
|
spec:
|
|
restartPolicy: OnFailure
|
|
nodeSelector:
|
|
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
|
|
containers:
|
|
- name: nova-db-sync
|
|
image: {{ .Values.images.db_sync }}
|
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
|
command:
|
|
- bash
|
|
- /tmp/db-sync.sh
|
|
volumeMounts:
|
|
- name: novaconf
|
|
mountPath: /etc/nova/nova.conf
|
|
subPath: nova.conf
|
|
- name: nova-bin
|
|
mountPath: /tmp/db-sync.sh
|
|
subPath: db-sync.sh
|
|
volumes:
|
|
- name: novaconf
|
|
configMap:
|
|
name: nova-etc
|
|
- name: nova-bin
|
|
configMap:
|
|
name: nova-bin
|