summaryrefslogtreecommitdiffstats
path: root/kubernetes/consul/templates/consul-server-service.yaml
diff options
context:
space:
mode:
authorMike Elliott <mike.elliott@amdocs.com>2017-09-21 20:21:00 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-21 20:21:00 +0000
commit3e130463a0062cdb7aef9717c46ee5bc9958a32e (patch)
tree2a2c242eeeacd9e32c965312709f7dd29709b93a /kubernetes/consul/templates/consul-server-service.yaml
parent46f145552e1554dc909c49d19d344da8ae7f6503 (diff)
parentbe779fa2d7f44b511bde929582b6340c650d24cc (diff)
Merge "Add Consul support to 'OneClick' deployment."
Diffstat (limited to 'kubernetes/consul/templates/consul-server-service.yaml')
-rw-r--r--kubernetes/consul/templates/consul-server-service.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/kubernetes/consul/templates/consul-server-service.yaml b/kubernetes/consul/templates/consul-server-service.yaml
new file mode 100644
index 0000000000..465456425e
--- /dev/null
+++ b/kubernetes/consul/templates/consul-server-service.yaml
@@ -0,0 +1,22 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: consul-server
+ name: consul-server
+ namespace: "{{ .Values.nsPrefix }}-consul"
+spec:
+ ports:
+ - name: consul-ui
+ nodePort: {{ .Values.nodePortPrefix }}70
+ port: 8500
+ protocol: TCP
+ targetPort: 8500
+ - name: consul-join
+ nodePort: {{ .Values.nodePortPrefix }}71
+ port: 8301
+ protocol: TCP
+ targetPort: 8301
+ selector:
+ app: consul-server
+ type: {{ .Values.service.type | quote }}