blob: 465456425ed2641589009ba3b7de7fb062cf2b01 [file] [log] [blame]
gfrabonibe779fa2017-09-19 13:25:30 -04001apiVersion: v1
2kind: Service
3metadata:
4 labels:
5 app: consul-server
6 name: consul-server
7 namespace: "{{ .Values.nsPrefix }}-consul"
8spec:
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 }}