yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableConsulConsulServer }} |
gfraboni | be779fa | 2017-09-19 13:25:30 -0400 | [diff] [blame] | 2 | apiVersion: v1 |
| 3 | kind: Service |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: consul-server |
| 7 | name: consul-server |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 8 | namespace: "{{ .Values.nsPrefix }}" |
gfraboni | be779fa | 2017-09-19 13:25:30 -0400 | [diff] [blame] | 9 | spec: |
| 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 }} |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 24 | #{{ end }} |