blob: a2feb9f6a3d8b5e63feaa3ad7be3e3eb8d9c9265 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableConsulConsulServer }}
gfrabonibe779fa2017-09-19 13:25:30 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: consul-server
7 name: consul-server
8 namespace: "{{ .Values.nsPrefix }}-consul"
9spec:
10 replicas: 3
11 selector:
12 matchLabels:
13 app: consul-server
14 template:
15 metadata:
16 labels:
17 app: consul-server
18 name: consul-server
19 spec:
20 containers:
21 - image: "{{ .Values.consulimageRegistry }}:{{ .Values.consuldockerTag }}"
22 command: ["/usr/local/bin/docker-entrypoint.sh"]
23 args: ["agent","-server","-client","0.0.0.0","-enable-script-checks","-bootstrap-expect=3","-ui","-join","consul-server.{{ .Values.nsPrefix }}-consul"]
24 name: consul-server
25 volumeMounts:
26 - mountPath: /consul/config
27 name: consul-server-config
28 volumes:
29 - hostPath:
gfrabonieea67702017-09-25 13:07:48 -040030 path: {{ .Values.rootHostPath }}/{{ .Values.nsPrefix }}/consul/consul-server-config
gfrabonibe779fa2017-09-19 13:25:30 -040031 name: consul-server-config
yurynfcef9942017-10-26 17:10:50 +030032#{{ end }}