blob: 8d780f0e5868d3627bb04220f26bbc440c96ca46 [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:
jasmineWen85d9d732018-03-06 16:13:35 +000021 - image: "{{ .Values.consulagentRegistry }}"
gfrabonibe779fa2017-09-19 13:25:30 -040022 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
jasmineWen85d9d732018-03-06 16:13:35 +000028 - mountPath: /consul/scripts
29 name: consul-agent-scripts-config
30 - mountPath: /consul/certs
31 name: consul-agent-certs-config
gfrabonibe779fa2017-09-19 13:25:30 -040032 volumes:
jasmineWen85d9d732018-03-06 16:13:35 +000033 - configMap:
34 name: consul-agent-configmap
gfrabonibe779fa2017-09-19 13:25:30 -040035 name: consul-agent-config
jasmineWen85d9d732018-03-06 16:13:35 +000036 - configMap:
37 name: consul-agent-scripts-configmap
38 defaultMode: 0755
39 name: consul-agent-scripts-config
40 - secret:
41 secretName: consul-agent-certs-secret
42 name: consul-agent-certs-config
BorislavG8bfc6cf2018-02-27 15:04:26 +000043#{{ end }}