apiVersion: batch/v1 kind: Job metadata: name: nova-post spec: template: metadata: annotations: {{ include "dep-check-init-cont-header" . | indent 8 }} {{ include "dep-check-init-cont-footer" .Values.dependencies.post | indent 8 }} spec: restartPolicy: OnFailure nodeSelector: {{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }} containers: - name: nova-post image: {{ .Values.images.post }} imagePullPolicy: {{ .Values.images.pull_policy }} command: - bash - /tmp/post.sh env: - name: ANSIBLE_LIBRARY value: /usr/share/ansible/ volumeMounts: - name: novaconf mountPath: /etc/nova/nova.conf subPath: nova.conf - name: nova-bin mountPath: /tmp/post.sh subPath: post.sh volumes: - name: novaconf configMap: name: nova-etc - name: nova-bin configMap: name: nova-bin