blob: 3dd801664cb38b56b7b88e744e435cd5e24ca7bb [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableConsulConsulServer }}
gfrabonibe779fa2017-09-19 13:25:30 -04002apiVersion: v1
3kind: Service
4metadata:
5 labels:
6 app: consul-server
7 name: consul-server
8 namespace: "{{ .Values.nsPrefix }}-consul"
9spec:
10 ports:
11 - name: consul-ui
12 nodePort: {{ .Values.nodePortPrefix }}70
13 port: 8500
14 protocol: TCP
15 targetPort: 8500
16 - name: consul-join
17 nodePort: {{ .Values.nodePortPrefix }}71
18 port: 8301
19 protocol: TCP
20 targetPort: 8301
21 selector:
22 app: consul-server
23 type: {{ .Values.service.type | quote }}
yurynfcef9942017-10-26 17:10:50 +030024#{{ end }}