aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/consul/templates/consul-server-service.yaml
blob: 465456425ed2641589009ba3b7de7fb062cf2b01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 }}