blob: 15318660b5a2de1c1db7c7ef2a9cc0a9d24651a6 [file] [log] [blame]
gfrabonibe779fa2017-09-19 13:25:30 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 labels:
5 app: consul-agent
6 name: consul-agent
7 namespace: "{{ .Values.nsPrefix }}-consul"
8spec:
9 selector:
10 matchLabels:
11 app: consul-agent
12 template:
13 metadata:
14 labels:
15 app: consul-agent
16 name: consul-agent
17 spec:
18 containers:
19 - image: "{{ .Values.consulimageRegistry }}:{{ .Values.consuldockerTag }}"
20 command: ["/usr/local/bin/docker-entrypoint.sh"]
21 args: ["agent","-client","0.0.0.0","-enable-script-checks","-join","consul-server.{{ .Values.nsPrefix }}-consul"]
22 name: consul-server
23 volumeMounts:
24 - mountPath: /consul/config
25 name: consul-agent-config
26 volumes:
27 - hostPath:
28 path: {{ .Values.rootHostPath }}/{{ .Values.nsPrefix }}/consul/consul-agent-config
29 name: consul-agent-config