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 |
| 8 | namespace: "{{ .Values.nsPrefix }}-consul" |
| 9 | spec: |
| 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: |
gfraboni | eea6770 | 2017-09-25 13:07:48 -0400 | [diff] [blame] | 30 | path: {{ .Values.rootHostPath }}/{{ .Values.nsPrefix }}/consul/consul-server-config |
gfraboni | be779fa | 2017-09-19 13:25:30 -0400 | [diff] [blame] | 31 | name: consul-server-config |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 32 | #{{ end }} |