blob: a2bbe6636f76c62b477f0a96de7f5e214f759316 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableConsulConsulAgent }}
gfrabonibe779fa2017-09-19 13:25:30 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: consul-agent
7 name: consul-agent
BorislavG8bfc6cf2018-02-27 15:04:26 +00008 namespace: "{{ .Values.nsPrefix }}"
gfrabonibe779fa2017-09-19 13:25:30 -04009spec:
vaibhav_16decb7d08b22018-02-16 06:33:55 +000010 replicas: {{ .Values.consulAgentReplicas }}
gfrabonibe779fa2017-09-19 13:25:30 -040011 selector:
12 matchLabels:
13 app: consul-agent
14 template:
15 metadata:
16 labels:
17 app: consul-agent
18 name: consul-agent
19 spec:
20 containers:
21 - image: "{{ .Values.consulimageRegistry }}:{{ .Values.consuldockerTag }}"
22 command: ["/usr/local/bin/docker-entrypoint.sh"]
BorislavG8bfc6cf2018-02-27 15:04:26 +000023 args: ["agent","-client","0.0.0.0","-enable-script-checks","-join","consul-server.{{ .Values.nsPrefix }}"]
gfrabonibe779fa2017-09-19 13:25:30 -040024 name: consul-server
25 volumeMounts:
26 - mountPath: /consul/config
27 name: consul-agent-config
28 volumes:
29 - hostPath:
30 path: {{ .Values.rootHostPath }}/{{ .Values.nsPrefix }}/consul/consul-agent-config
31 name: consul-agent-config
BorislavG8bfc6cf2018-02-27 15:04:26 +000032#{{ end }}