Add Consul support to 'OneClick' deployment.
[oom.git] / kubernetes / consul / templates / consul-server-service.yaml
1 apiVersion: v1
2 kind: Service
3 metadata:
4   labels:
5     app: consul-server
6   name: consul-server
7   namespace: "{{ .Values.nsPrefix }}-consul"
8 spec:
9   ports:
10   - name: consul-ui
11     nodePort: {{ .Values.nodePortPrefix }}70
12     port: 8500
13     protocol: TCP
14     targetPort: 8500
15   - name: consul-join
16     nodePort: {{ .Values.nodePortPrefix }}71
17     port: 8301
18     protocol: TCP
19     targetPort: 8301
20   selector:
21     app: consul-server
22   type: {{ .Values.service.type | quote }}