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 |
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.consulAgentReplicas }} |
gfraboni | be779fa | 2017-09-19 13:25:30 -0400 | [diff] [blame] | 11 | selector: |
| 12 | matchLabels: |
| 13 | app: consul-agent |
| 14 | template: |
| 15 | metadata: |
| 16 | labels: |
| 17 | app: consul-agent |
| 18 | name: consul-agent |
| 19 | spec: |
| 20 | containers: |
| 21 | - image: "{{ .Values.consulimageRegistry }}:{{ .Values.consuldockerTag }}" |
| 22 | command: ["/usr/local/bin/docker-entrypoint.sh"] |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 23 | args: ["agent","-client","0.0.0.0","-enable-script-checks","-join","consul-server.{{ .Values.nsPrefix }}"] |
gfraboni | be779fa | 2017-09-19 13:25:30 -0400 | [diff] [blame] | 24 | name: consul-server |
| 25 | volumeMounts: |
| 26 | - mountPath: /consul/config |
| 27 | name: consul-agent-config |
| 28 | volumes: |
| 29 | - hostPath: |
| 30 | path: {{ .Values.rootHostPath }}/{{ .Values.nsPrefix }}/consul/consul-agent-config |
| 31 | name: consul-agent-config |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 32 | #{{ end }} |