diff options
author | Mike Elliott <mike.elliott@amdocs.com> | 2017-09-21 20:21:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-21 20:21:00 +0000 |
commit | 3e130463a0062cdb7aef9717c46ee5bc9958a32e (patch) | |
tree | 2a2c242eeeacd9e32c965312709f7dd29709b93a /kubernetes/consul/templates/consul-agent-deployment.yaml | |
parent | 46f145552e1554dc909c49d19d344da8ae7f6503 (diff) | |
parent | be779fa2d7f44b511bde929582b6340c650d24cc (diff) |
Merge "Add Consul support to 'OneClick' deployment."
Diffstat (limited to 'kubernetes/consul/templates/consul-agent-deployment.yaml')
-rw-r--r-- | kubernetes/consul/templates/consul-agent-deployment.yaml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/kubernetes/consul/templates/consul-agent-deployment.yaml b/kubernetes/consul/templates/consul-agent-deployment.yaml new file mode 100644 index 0000000000..15318660b5 --- /dev/null +++ b/kubernetes/consul/templates/consul-agent-deployment.yaml @@ -0,0 +1,29 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + labels: + app: consul-agent + name: consul-agent + namespace: "{{ .Values.nsPrefix }}-consul" +spec: + selector: + matchLabels: + app: consul-agent + template: + metadata: + labels: + app: consul-agent + name: consul-agent + spec: + containers: + - 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"] + name: consul-server + volumeMounts: + - mountPath: /consul/config + name: consul-agent-config + volumes: + - hostPath: + path: {{ .Values.rootHostPath }}/{{ .Values.nsPrefix }}/consul/consul-agent-config + name: consul-agent-config |