Merge pull request #244 from wilreichert/dbcmd
use pod command: instead of the COMMAND environment variable
This commit is contained in:
commit
97fd35009a
@ -66,6 +66,9 @@ spec:
|
|||||||
cpu: {{ .Values.resources.api.requests.cpu | quote }}
|
cpu: {{ .Values.resources.api.requests.cpu | quote }}
|
||||||
memory: {{ .Values.resources.api.requests.memory | quote }}
|
memory: {{ .Values.resources.api.requests.memory | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
command:
|
||||||
|
- bash
|
||||||
|
- /tmp/start.sh
|
||||||
env:
|
env:
|
||||||
- name: INTERFACE_NAME
|
- name: INTERFACE_NAME
|
||||||
value: "eth0"
|
value: "eth0"
|
||||||
@ -81,8 +84,6 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: COMMAND
|
|
||||||
value: "bash /tmp/start.sh"
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: {{ .Values.network.port.mariadb }}
|
- containerPort: {{ .Values.network.port.mariadb }}
|
||||||
- containerPort: {{ .Values.network.port.wsrep }}
|
- containerPort: {{ .Values.network.port.wsrep }}
|
||||||
|
@ -39,6 +39,9 @@ spec:
|
|||||||
cpu: {{ .Values.resources.job.seed.requests.cpu | quote }}
|
cpu: {{ .Values.resources.job.seed.requests.cpu | quote }}
|
||||||
memory: {{ .Values.resources.job.seed.requests.memory | quote }}
|
memory: {{ .Values.resources.job.seed.requests.memory | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
command:
|
||||||
|
- bash
|
||||||
|
- /tmp/seed.sh
|
||||||
env:
|
env:
|
||||||
- name: INTERFACE_NAME
|
- name: INTERFACE_NAME
|
||||||
value: "eth0"
|
value: "eth0"
|
||||||
@ -54,8 +57,6 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: COMMAND
|
|
||||||
value: "bash /tmp/seed.sh"
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: {{ .Values.network.port.mariadb }}
|
- containerPort: {{ .Values.network.port.mariadb }}
|
||||||
- containerPort: {{ .Values.network.port.wsrep }}
|
- containerPort: {{ .Values.network.port.wsrep }}
|
||||||
|
Loading…
Reference in New Issue
Block a user