HuabingZhao | f2a9f56 | 2017-08-26 11:49:59 +0800 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: msb-consul |
| 5 | labels: |
| 6 | app: msb-consul |
| 7 | spec: |
| 8 | clusterIP: "{{ .Values.consulClusterIP }}" |
| 9 | ports: |
HuabingZhao | 4ea0655 | 2017-08-29 15:30:10 +0800 | [diff] [blame^] | 10 | - port: {{ .Values.consulPort }} |
HuabingZhao | f2a9f56 | 2017-08-26 11:49:59 +0800 | [diff] [blame] | 11 | nodePort: "{{ .Values.consulNodePort }}" |
| 12 | selector: |
| 13 | app: msb-consul |
HuabingZhao | c2b4fcf | 2017-08-29 10:48:25 +0800 | [diff] [blame] | 14 | type: NodePort |
| 15 | --- |
| 16 | apiVersion: v1 |
| 17 | kind: Service |
| 18 | metadata: |
| 19 | name: msb-discovery |
| 20 | labels: |
| 21 | app: msb-discovery |
| 22 | spec: |
| 23 | clusterIP: "{{ .Values.discoveryClusterIP }}" |
| 24 | ports: |
| 25 | - port: {{ .Values.discoveryPort }} |
| 26 | nodePort: {{ .Values.discoveryNodePort }} |
| 27 | selector: |
| 28 | app: msb-discovery |
HuabingZhao | f2a9f56 | 2017-08-26 11:49:59 +0800 | [diff] [blame] | 29 | type: NodePort |