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