
- Split out osapi and metadata api to remove unnecessary security privileges - Prune dependencies - Fix static imagePullPolicies - Remove extraneous start.sh imported accidently from keystone chart
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: nova-db-sync
|
|
spec:
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
pod.beta.kubernetes.io/init-containers: '[
|
|
{
|
|
"name": "init",
|
|
"image": "{{ .Values.image.entrypoint }}",
|
|
"imagePullPolicy": "{{ .Values.image.pull_policy }}",
|
|
"env": [
|
|
{
|
|
"name": "NAMESPACE",
|
|
"value": "{{ .Release.Namespace }}"
|
|
},
|
|
{
|
|
"name": "DEPENDENCY_SERVICE",
|
|
"value": "{{ include "joinListWithColon" .Values.dependencies.db_sync.service }}"
|
|
},
|
|
{
|
|
"name": "DEPENDENCY_JOBS",
|
|
"value": "{{ include "joinListWithColon" .Values.dependencies.db_sync.jobs }}"
|
|
},
|
|
{
|
|
"name": "COMMAND",
|
|
"value": "echo done"
|
|
}
|
|
]
|
|
}
|
|
]'
|
|
spec:
|
|
restartPolicy: OnFailure
|
|
containers:
|
|
- name: nova-db-sync
|
|
image: {{ .Values.image.db_sync }}
|
|
imagePullPolicy: {{ .Values.image.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
|