-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpcf-deploy.yaml
45 lines (45 loc) · 1.07 KB
/
pcf-deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
apiVersion: v1
kind: Service
metadata:
name: open5gs-pcf
labels:
epc-mode: pcf
spec:
selector:
epc-mode: pcf
ports:
- protocol: TCP
port: 80
targetPort: 80
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: open5gs-pcf-deployment
labels:
epc-mode: pcf
spec:
replicas: 1
selector:
matchLabels:
epc-mode: pcf
template:
metadata:
annotations:
sidecar.istio.io/inject: "true"
labels:
epc-mode: pcf
spec:
containers:
- name: pcf
image: "{{ .Values.open5gs.image.repository }}:{{ .Values.open5gs.image.tag }}"
imagePullPolicy: {{ .Values.open5gs.image.pullPolicy }}
command: ["open5gs-pcfd", "-c", "/open5gs/config-map/pcf.yaml"]
volumeMounts:
- name: open5gs-pcf-config
mountPath: /open5gs/config-map/pcf.yaml
subPath: "pcf.yaml"
volumes:
- name: open5gs-pcf-config
configMap:
name: open5gs-pcf-config