Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 1 | {{- /* |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 2 | |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 3 | # Copyright 2019-present Open Networking Foundation |
| 4 | # |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 5 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 6 | |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 7 | */ -}} |
| 8 | |
| 9 | --- |
| 10 | apiVersion: v1 |
| 11 | kind: Service |
| 12 | metadata: |
| 13 | name: accelleran-cbrs-nats |
| 14 | labels: |
| 15 | {{ tuple "accelleran-cbrs-nats" . | include "accelleran-cbrs-common.metadata_labels" | indent 4 }} |
| 16 | spec: |
| 17 | selector: |
| 18 | {{ tuple "accelleran-cbrs-nats" . | include "accelleran-cbrs-common.metadata_labels" | indent 4 }} |
| 19 | ports: |
| 20 | - name: nats-port |
| 21 | port: {{ .Values.config.nats.ports.natsPort.port }} |
| 22 | protocol: {{ .Values.config.nats.ports.natsPort.protocol }} |
| 23 | - name: cluster-port |
| 24 | port: {{ .Values.config.nats.ports.clusterPort.port }} |
| 25 | protocol: {{ .Values.config.nats.ports.clusterPort.protocol }} |
| 26 | - name: console-port |
| 27 | port: {{ .Values.config.nats.ports.consolePort.port }} |
| 28 | protocol: {{ .Values.config.nats.ports.consolePort.protocol }} |
| 29 | |
| 30 | --- |
| 31 | apiVersion: v1 |
| 32 | kind: Service |
| 33 | metadata: |
| 34 | name: accelleran-cbrs-nats-exernal |
| 35 | labels: |
| 36 | {{ tuple "accelleran-cbrs-nats" . | include "accelleran-cbrs-common.metadata_labels" | indent 4 }} |
| 37 | spec: |
| 38 | selector: |
| 39 | {{ tuple "accelleran-cbrs-nats" . | include "accelleran-cbrs-common.metadata_labels" | indent 4 }} |
| 40 | type: NodePort |
| 41 | ports: |
| 42 | - name: nats-port |
| 43 | port: {{ .Values.config.nats.ports.natsPort.port }} |
| 44 | nodePort: {{ .Values.config.nats.ports.natsPort.nodePort }} |
| 45 | protocol: {{ .Values.config.nats.ports.natsPort.protocol }} |
| 46 | - name: cluster-port |
| 47 | port: {{ .Values.config.nats.ports.clusterPort.port }} |
| 48 | nodePort: {{ .Values.config.nats.ports.clusterPort.nodePort }} |
| 49 | protocol: {{ .Values.config.nats.ports.clusterPort.protocol }} |
| 50 | - name: console-port |
| 51 | port: {{ .Values.config.nats.ports.consolePort.port }} |
| 52 | nodePort: {{ .Values.config.nats.ports.consolePort.nodePort }} |
| 53 | protocol: {{ .Values.config.nats.ports.consolePort.protocol }} |