30 lines
820 B
YAML
30 lines
820 B
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: nova-init
|
|
spec:
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
{{ include "dep-check-init-cont-header" . | indent 8 }}
|
|
{{ include "dep-check-init-cont-footer" .Values.dependencies.init | indent 8 }}
|
|
spec:
|
|
restartPolicy: OnFailure
|
|
nodeSelector:
|
|
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
|
|
containers:
|
|
- name: nova-init
|
|
image: {{ .Values.images.init }}
|
|
imagePullPolicy: {{ .Values.images.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
|