Woojoong Kim | fdaa773 | 2019-10-08 10:08:25 -0700 | [diff] [blame] | 1 | {{/* |
| 2 | Copyright 2019-present Open Networking Foundation |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */}} |
| 16 | |
| 17 | --- |
| 18 | apiVersion: v1 |
| 19 | kind: Service |
| 20 | metadata: |
| 21 | name: accelleran-cu |
| 22 | labels: |
| 23 | {{ tuple "accelleran-cu" . | include "accelleran-cu.metadata_labels" | indent 4 }} |
| 24 | spec: |
| 25 | selector: |
| 26 | {{ tuple "accelleran-cu" . | include "accelleran-cu.metadata_labels" | indent 4 }} |
| 27 | ports: |
| 28 | - name: s1ap |
| 29 | port: {{ .Values.config.vran.ports.s1ap.port }} |
| 30 | protocol: SCTP |
| 31 | - name: nats |
| 32 | port: {{ .Values.config.vran.ports.nats.port }} |
| 33 | protocol: TCP |
| 34 | - name: redis |
| 35 | port: {{ .Values.config.vran.ports.redis.port }} |
| 36 | protocol: TCP |
| 37 | |
| 38 | --- |
| 39 | apiVersion: v1 |
| 40 | kind: Service |
| 41 | metadata: |
| 42 | name: acceleran-cu-external |
| 43 | labels: |
| 44 | {{ tuple "accelleran-cu" . | include "accelleran-cu.metadata_labels" | indent 4 }} |
| 45 | spec: |
| 46 | selector: |
| 47 | {{ tuple "accelleran-cu" . | include "accelleran-cu.metadata_labels" | indent 4 }} |
| 48 | type: NodePort |
| 49 | ports: |
| 50 | - name: s1ap |
| 51 | port: {{ .Values.config.vran.ports.s1ap.port }} |
| 52 | protocol: SCTP |
| 53 | nodePort: {{ .Values.config.vran.ports.s1ap.nodePort }} |
| 54 | - name: nats |
| 55 | port: {{ .Values.config.vran.ports.nats.port }} |
| 56 | protocol: TCP |
| 57 | nodePort: {{ .Values.config.vran.ports.nats.nodePort }} |
| 58 | - name: redis |
| 59 | port: {{ .Values.config.vran.ports.redis.port }} |
| 60 | protocol: TCP |
| 61 | nodePort: {{ .Values.config.vran.ports.redis.nodePort }} |