summaryrefslogtreecommitdiffstats
path: root/kubernetes/consul/templates
diff options
context:
space:
mode:
authorBorislavG <Borislav.Glozman@amdocs.com>2018-04-12 13:57:58 +0000
committerBorislavG <Borislav.Glozman@amdocs.com>2018-04-12 13:57:58 +0000
commit9a637a9e25f6f1126fe8e682dae5276445cf6b0f (patch)
tree2b24f93126f6dba0e1db4b68132b1b0aeb29d290 /kubernetes/consul/templates
parent7dba27e97aae16d6d12833a0593ec828bfef38c4 (diff)
Fix consul agent start problems
Change-Id: I62f394b2608c8ac16c97b90658b0d4fc722659c5 Issue-ID: OOM-913 Signed-off-by: BorislavG <Borislav.Glozman@amdocs.com>
Diffstat (limited to 'kubernetes/consul/templates')
-rw-r--r--kubernetes/consul/templates/deployment.yaml10
1 files changed, 7 insertions, 3 deletions
diff --git a/kubernetes/consul/templates/deployment.yaml b/kubernetes/consul/templates/deployment.yaml
index 68b23917b6..e984e2a72f 100644
--- a/kubernetes/consul/templates/deployment.yaml
+++ b/kubernetes/consul/templates/deployment.yaml
@@ -36,11 +36,15 @@ spec:
spec:
containers:
- image: "{{ .Values.repository | default .Values.global.repository }}/{{ .Values.image }}"
- command: ["/usr/local/bin/docker-entrypoint.sh"]
- args: ["agent","-client","0.0.0.0","-enable-script-checks","-join","{{ .Release.Name }}-{{ index .Values "consul-server" "nameOverride" }}.{{ include "common.namespace" .}}"]
+ command:
+ - /bin/sh
+ - "-c"
+ - |
+ cp /tmp/consul/config/* /consul/config
+ /usr/local/bin/docker-entrypoint.sh agent -client 0.0.0.0 -enable-script-checks -join {{ .Release.Name }}-{{ .Values.consulServer.nameOverride }}.{{ include "common.namespace" .}}
name: {{ include "common.name" . }}
volumeMounts:
- - mountPath: /consul/config
+ - mountPath: /tmp/consul/config
name: consul-agent-config
- mountPath: /consul/scripts
name: consul-agent-scripts-config