yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableConsulConsulServer }} |
gfraboni | be779fa | 2017-09-19 13:25:30 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: consul-server |
| 7 | name: consul-server |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 8 | namespace: "{{ .Values.nsPrefix }}" |
gfraboni | be779fa | 2017-09-19 13:25:30 -0400 | [diff] [blame] | 9 | spec: |
vaibhav_16dec | b7d08b2 | 2018-02-16 06:33:55 +0000 | [diff] [blame] | 10 | replicas: {{ .Values.consulServerReplicas }} |
gfraboni | be779fa | 2017-09-19 13:25:30 -0400 | [diff] [blame] | 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: |
jasmineWen | 85d9d73 | 2018-03-06 16:13:35 +0000 | [diff] [blame^] | 21 | - image: "{{ .Values.consulserverRegistry }}" |
gfraboni | be779fa | 2017-09-19 13:25:30 -0400 | [diff] [blame] | 22 | command: ["/usr/local/bin/docker-entrypoint.sh"] |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 23 | args: ["agent","-server","-client","0.0.0.0","-enable-script-checks","-bootstrap-expect=3","-ui","-join","consul-server.{{ .Values.nsPrefix }}"] |
gfraboni | be779fa | 2017-09-19 13:25:30 -0400 | [diff] [blame] | 24 | name: consul-server |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 25 | #{{ end }} |