yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableConsulConsulAgent }} |
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-agent |
| 7 | name: consul-agent |
| 8 | namespace: "{{ .Values.nsPrefix }}-consul" |
| 9 | spec: |
| 10 | selector: |
| 11 | matchLabels: |
| 12 | app: consul-agent |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: consul-agent |
| 17 | name: consul-agent |
| 18 | spec: |
| 19 | containers: |
| 20 | - image: "{{ .Values.consulimageRegistry }}:{{ .Values.consuldockerTag }}" |
| 21 | command: ["/usr/local/bin/docker-entrypoint.sh"] |
| 22 | args: ["agent","-client","0.0.0.0","-enable-script-checks","-join","consul-server.{{ .Values.nsPrefix }}-consul"] |
| 23 | name: consul-server |
| 24 | volumeMounts: |
| 25 | - mountPath: /consul/config |
| 26 | name: consul-agent-config |
| 27 | volumes: |
| 28 | - hostPath: |
| 29 | path: {{ .Values.rootHostPath }}/{{ .Values.nsPrefix }}/consul/consul-agent-config |
| 30 | name: consul-agent-config |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 31 | #{{ end }} |