openstack-helm/nova/templates/job-init.yaml
Alan Meadows 88a85ae7d5 Implement requested feedback in PR#91
- 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
2017-01-09 07:49:44 -08:00

51 lines
1.4 KiB
YAML

apiVersion: batch/v1
kind: Job
metadata:
name: nova-init
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.init.service }}"
},
{
"name": "DEPENDENCY_JOBS",
"value": "{{ include "joinListWithColon" .Values.dependencies.init.jobs }}"
},
{
"name": "COMMAND",
"value": "echo done"
}
]
}
]'
spec:
restartPolicy: OnFailure
containers:
- name: nova-init
image: {{ .Values.image.init }}
imagePullPolicy: {{ .Values.image.pull_policy }}
command:
- bash
- /tmp/init.sh
volumeMounts:
- name: nova-bin
mountPath: /tmp/init.sh
subPath: init.sh
volumes:
- name: nova-bin
configMap:
name: nova-bin