blob: 81b16b54cad351a1f9270ac187bfc9abb8d7c1cc [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:
10 selector:
11 matchLabels:
12 app: consul-agent
13 template:
14 metadata:
15 labels:
16 app: consul-agent
17 name: consul-agent
18 spec:
19 containers:
20 - image: "{{ .Values.consulimageRegistry }}:{{ .Values.consuldockerTag }}"
21 command: ["/usr/local/bin/docker-entrypoint.sh"]
BorislavG8bfc6cf2018-02-27 15:04:26 +000022 args: ["agent","-client","0.0.0.0","-enable-script-checks","-join","consul-server.{{ .Values.nsPrefix }}"]
gfrabonibe779fa2017-09-19 13:25:30 -040023 name: consul-server
24 volumeMounts:
25 - mountPath: /consul/config
26 name: consul-agent-config
27 volumes:
28 - hostPath:
29 path: {{ .Values.rootHostPath }}/{{ .Values.nsPrefix }}/consul/consul-agent-config
30 name: consul-agent-config
BorislavG8bfc6cf2018-02-27 15:04:26 +000031#{{ end }}