| #{{ if not .Values.disableConsulConsulAgent }} |
| apiVersion: extensions/v1beta1 |
| namespace: "{{ .Values.nsPrefix }}-consul" |
| - image: "{{ .Values.consulimageRegistry }}:{{ .Values.consuldockerTag }}" |
| command: ["/usr/local/bin/docker-entrypoint.sh"] |
| args: ["agent","-client","0.0.0.0","-enable-script-checks","-join","consul-server.{{ .Values.nsPrefix }}-consul"] |
| - mountPath: /consul/config |
| name: consul-agent-config |
| path: {{ .Values.rootHostPath }}/{{ .Values.nsPrefix }}/consul/consul-agent-config |
| name: consul-agent-config |