From 3899b73a47e8d18909c41c44ebe3eb53088d7913 Mon Sep 17 00:00:00 2001 From: Wil Reichert Date: Fri, 3 Mar 2017 15:07:29 +0900 Subject: [PATCH] use pod command: instead of the COMMAND environment variable --- mariadb/templates/deployment.yaml | 5 +++-- mariadb/templates/job-seed.yaml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mariadb/templates/deployment.yaml b/mariadb/templates/deployment.yaml index 2a7669c123..df04d10ebf 100644 --- a/mariadb/templates/deployment.yaml +++ b/mariadb/templates/deployment.yaml @@ -66,6 +66,9 @@ spec: cpu: {{ .Values.resources.api.requests.cpu | quote }} memory: {{ .Values.resources.api.requests.memory | quote }} {{- end }} + command: + - bash + - /tmp/start.sh env: - name: INTERFACE_NAME value: "eth0" @@ -81,8 +84,6 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace - - name: COMMAND - value: "bash /tmp/start.sh" ports: - containerPort: {{ .Values.network.port.mariadb }} - containerPort: {{ .Values.network.port.wsrep }} diff --git a/mariadb/templates/job-seed.yaml b/mariadb/templates/job-seed.yaml index 77a0eca18c..90b49dc35a 100644 --- a/mariadb/templates/job-seed.yaml +++ b/mariadb/templates/job-seed.yaml @@ -39,6 +39,9 @@ spec: cpu: {{ .Values.resources.job.seed.requests.cpu | quote }} memory: {{ .Values.resources.job.seed.requests.memory | quote }} {{- end }} + command: + - bash + - /tmp/seed.sh env: - name: INTERFACE_NAME value: "eth0" @@ -54,8 +57,6 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace - - name: COMMAND - value: "bash /tmp/seed.sh" ports: - containerPort: {{ .Values.network.port.mariadb }} - containerPort: {{ .Values.network.port.wsrep }}