blob: eca2345d8381112f04202cab8b6954ce969f52a9 [file] [log] [blame]
Hyunsun Moon6ff622e2020-03-11 17:14:48 -07001{{/*
2Copyright 2020-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: spgwu-headless
22 labels:
23{{ tuple "spgwu" . | include "omec-user-plane.metadata_labels" | indent 4 }}
24spec:
25 clusterIP: None
26 selector:
27{{ tuple "spgwu" . | include "omec-user-plane.metadata_labels" | indent 4 }}
28 ports:
29 - name: zmq
30 protocol: TCP
31 port: {{ .Values.config.spgwu.zmq.recvPort }}
32---
33apiVersion: v1
34kind: Service
35metadata:
36 name: spgwu-external
37 labels:
38{{ tuple "spgwu" . | include "omec-user-plane.metadata_labels" | indent 4 }}
39spec:
40 selector:
41{{ tuple "spgwu" . | include "omec-user-plane.metadata_labels" | indent 4 }}
42 type: NodePort
43 ports:
44 - name: bess-web
45 protocol: TCP
46 port: 8000
47 nodePort: {{ .Values.config.bess.web.nodePort }}