blob: a1e0801eabac6836e45a562a929c82a61a701f11 [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
BorislavG8bfc6cf2018-02-27 15:04:26 +00008 namespace: "{{ .Values.nsPrefix }}"
gfrabonibe779fa2017-09-19 13:25:30 -04009spec:
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 }}