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