
The Nova and Neutron charts use more granular node labels; this trues up the their jobs' nodeselectors to use them. Fix for https://github.com/att-comdev/openstack-helm/issues/119
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: neutron-init
|
|
spec:
|
|
template:
|
|
spec:
|
|
restartPolicy: OnFailure
|
|
nodeSelector:
|
|
{{ .Values.labels.server.node_selector_key }}: {{ .Values.labels.server.node_selector_value }}
|
|
containers:
|
|
- name: neutron-init
|
|
image: {{ .Values.images.init }}
|
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
|
env:
|
|
- name: INTERFACE_NAME
|
|
value: "eth0"
|
|
- name: POD_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
- name: COMMAND
|
|
value: "bash /tmp/init.sh"
|
|
- name: DEPENDENCY_JOBS
|
|
value: "{{ include "joinListWithColon" .Values.dependencies.init.jobs }}"
|
|
- name: DEPENDENCY_SERVICE
|
|
value: "{{ include "joinListWithColon" .Values.dependencies.init.service }}"
|
|
volumeMounts:
|
|
- name: initsh
|
|
mountPath: /tmp/init.sh
|
|
subPath: init.sh
|
|
volumes:
|
|
- name: initsh
|
|
configMap:
|
|
name: neutron-bin
|