-
Notifications
You must be signed in to change notification settings - Fork 0
/
pcf.yaml
263 lines (257 loc) · 5.72 KB
/
pcf.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
---
# Source: sd-core/charts/5g-control-plane/templates/configmap-pcf.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: pcf
labels:
release: sd-core
app: pcf
data:
pcf-run.sh: |
#!/bin/sh
# Copyright 2020-present Open Networking Foundation
#
# SPDX-License-Identifier: Apache-2.0
set -xe
cd /free5gc
cat config/pcfcfg.conf
GOTRACEBACK=crash ./pcf/pcf -pcfcfg config/pcfcfg.conf
pcfcfg.conf: |-
configuration:
defaultBdtRefId: BdtPolicyId-
mongodb:
name: free5gc
url: mongodb://mongodb:27017
nrfUri: http://nrf:29510
pcfName: PCF
plmnList:
- plmnId:
mcc: "208"
mnc: "93"
- plmnId:
mcc: "333"
mnc: "88"
sbi:
bindingIPv4: 0.0.0.0
port: 29507
registerIPv4: pcf
scheme: http
serviceList:
- serviceName: npcf-am-policy-control
- serviceName: npcf-smpolicycontrol
suppFeat: 3fff
- serviceName: npcf-bdtpolicycontrol
- serviceName: npcf-policyauthorization
suppFeat: 3
- serviceName: npcf-eventexposure
- serviceName: npcf-ue-policy-control
info:
description: PCF initial local configuration
version: 1.0.0
logger:
AMF:
ReportCaller: false
debugLevel: info
AUSF:
ReportCaller: false
debugLevel: info
Aper:
ReportCaller: false
debugLevel: info
CommonConsumerTest:
ReportCaller: false
debugLevel: info
FSM:
ReportCaller: false
debugLevel: info
MongoDBLibrary:
ReportCaller: false
debugLevel: info
N3IWF:
ReportCaller: false
debugLevel: info
NAS:
ReportCaller: false
debugLevel: info
NGAP:
ReportCaller: false
debugLevel: info
NRF:
ReportCaller: false
debugLevel: info
NamfComm:
ReportCaller: false
debugLevel: info
NamfEventExposure:
ReportCaller: false
debugLevel: info
NsmfPDUSession:
ReportCaller: false
debugLevel: info
NudrDataRepository:
ReportCaller: false
debugLevel: info
OpenApi:
ReportCaller: false
debugLevel: info
PCF:
ReportCaller: false
debugLevel: info
PFCP:
ReportCaller: false
debugLevel: info
PathUtil:
ReportCaller: false
debugLevel: info
SMF:
ReportCaller: false
debugLevel: info
UDM:
ReportCaller: false
debugLevel: info
UDR:
ReportCaller: false
debugLevel: info
WEBUI:
ReportCaller: false
debugLevel: info
---
# Source: sd-core/charts/5g-control-plane/templates/service-pcf.yaml
apiVersion: v1
kind: Service
metadata:
name: pcf
labels:
release: sd-core
app: pcf
spec:
type: ClusterIP
selector:
release: sd-core
app: pcf
ports:
- name: sbi
port: 29507
protocol: TCP
---
# Source: sd-core/charts/5g-control-plane/templates/deployment-pcf.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: pcf
namespace: omec
labels:
release: sd-core
app: pcf
---
# Source: sd-core/charts/5g-control-plane/templates/deployment-pcf.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: pcf
namespace: omec
labels:
release: sd-core
app: pcf
rules:
- apiGroups:
- ""
- extensions
- batch
- apps
verbs:
- get
- list
- patch
resources:
- statefulsets
- daemonsets
- jobs
- pods
- services
- endpoints
- configmaps
---
# Source: sd-core/charts/5g-control-plane/templates/deployment-pcf.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: pcf
namespace: omec
labels:
release: sd-core
app: pcf
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: pcf
subjects:
- kind: ServiceAccount
name: pcf
namespace: omec
---
# Source: sd-core/charts/5g-control-plane/templates/deployment-pcf.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: pcf
labels:
release: sd-core
app: pcf
spec:
replicas: 1
#serviceName: pcf-headless
selector:
matchLabels:
release: sd-core
app: pcf
template:
metadata:
labels:
release: sd-core
app: pcf
spec:
serviceAccountName: pcf
initContainers:
- name: wait-pcf-module
image: registry.opennetworking.org/docker.io/omecproject/pod-init:1.0.0
imagePullPolicy: IfNotPresent
command: ['sh', '-c', 'until nslookup pcf; do echo waiting for pcf; sleep 4; done;']
containers:
- name: pcf
image: registry.opennetworking.org/docker.io/omecproject/5gc-pcf:master-874bbe1
imagePullPolicy: IfNotPresent
stdin: true
tty: true
command: ["/free5gc/script/pcf-run.sh"]
env:
- name: GRPC_GO_LOG_VERBOSITY_LEVEL
value: "99"
- name: GRPC_GO_LOG_SEVERITY_LEVEL
value: "info"
- name: GRPC_TRACE
value: "all"
- name: GRPC_VERBOSITY
value: "debug"
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: MANAGED_BY_CONFIG_POD
value: "true"
volumeMounts:
- name: run-script
mountPath: /free5gc/script/pcf-run.sh
subPath: pcf-run.sh
- name: nf-config
mountPath: /free5gc/config
volumes:
- name: run-script
configMap:
name: pcf
defaultMode: 493
- name: nf-config
configMap:
name: pcf
defaultMode: 493