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