blob: 706aa0eb9a1331d37a46614368cb68310f46fe8c [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
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.consulServerReplicas }}
gfrabonibe779fa2017-09-19 13:25:30 -040011 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:
jasmineWen85d9d732018-03-06 16:13:35 +000021 - image: "{{ .Values.consulserverRegistry }}"
gfrabonibe779fa2017-09-19 13:25:30 -040022 command: ["/usr/local/bin/docker-entrypoint.sh"]
BorislavG8bfc6cf2018-02-27 15:04:26 +000023 args: ["agent","-server","-client","0.0.0.0","-enable-script-checks","-bootstrap-expect=3","-ui","-join","consul-server.{{ .Values.nsPrefix }}"]
gfrabonibe779fa2017-09-19 13:25:30 -040024 name: consul-server
BorislavG8bfc6cf2018-02-27 15:04:26 +000025#{{ end }}