gfraboni | be779fa | 2017-09-19 13:25:30 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | labels: |
| 5 | app: consul-server |
| 6 | name: consul-server |
| 7 | namespace: "{{ .Values.nsPrefix }}-consul" |
| 8 | spec: |
| 9 | replicas: 3 |
| 10 | selector: |
| 11 | matchLabels: |
| 12 | app: consul-server |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: consul-server |
| 17 | name: consul-server |
| 18 | spec: |
| 19 | containers: |
| 20 | - image: "{{ .Values.consulimageRegistry }}:{{ .Values.consuldockerTag }}" |
| 21 | command: ["/usr/local/bin/docker-entrypoint.sh"] |
| 22 | args: ["agent","-server","-client","0.0.0.0","-enable-script-checks","-bootstrap-expect=3","-ui","-join","consul-server.{{ .Values.nsPrefix }}-consul"] |
| 23 | name: consul-server |
| 24 | volumeMounts: |
| 25 | - mountPath: /consul/config |
| 26 | name: consul-server-config |
| 27 | volumes: |
| 28 | - hostPath: |
gfraboni | eea6770 | 2017-09-25 13:07:48 -0400 | [diff] [blame] | 29 | path: {{ .Values.rootHostPath }}/{{ .Values.nsPrefix }}/consul/consul-server-config |
gfraboni | be779fa | 2017-09-19 13:25:30 -0400 | [diff] [blame] | 30 | name: consul-server-config |