Repository navigation
Expand file tree
/
Copy pathfree5gc-nrf.yaml
More file actions
81 lines (81 loc) · 2.05 KB
/
Copy pathfree5gc-nrf.yaml
File metadata and controls
81 lines (81 loc) · 2.05 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: free5gc-nrf-deployment
spec:
selector:
matchLabels:
app: free5gc-nrf
replicas: 1
template:
metadata:
labels:
app: free5gc-nrf
#annotations:
#diamanti.com/endpoint0: '{"endpointId":"nrf"}'
spec:
containers:
- name: myapp-container
image: mjkota/free5gc-compose_free5gc-nrf
ports:
- containerPort: 29510
imagePullPolicy: IfNotPresent
command: ["/bin/sh"]
args: ["-c", "./nrf -nrfcfg ../config/nrfcfg.conf"]
env:
- name: GIN_MODE
value: "release"
volumeMounts:
- name: nrfcfg
mountPath: /free5gc/config/nrfcfg.conf
subPath: nrfcfg.conf
- name: free5gc
mountPath: /free5gc/config/free5GC.conf
subPath: free5GC.conf
# initContainers:
# - name: init-network-client
# image: sdnvortex/network-controller:v0.4.9
# command: ["/go/bin/client"]
# args: ["-s=unix:///tmp/vortex.sock", "-b=br0", "-n=eth1", "-i=172.16.223.195/24", "-g=172.16.223.19254"]
# env:
# - name: POD_NAME
# valueFrom:
# fieldRef:
# fieldPath: metadata.name
# - name: POD_NAMESPACE
# valueFrom:
# fieldRef:
# fieldPath: metadata.namespace
# - name: POD_UUID
# valueFrom:
# fieldRef:
# fieldPath: metadata.uid
# volumeMounts:
# - mountPath: /tmp/
# name: grpc-sock
volumes:
- name: nrfcfg
configMap:
name: free5gc-configmap
items:
- key: nrfcfg.conf
path: nrfcfg.conf
- name: free5gc
configMap:
name: free5gc-configmap
items:
- key: free5GC.conf
path: free5GC.conf
---
kind: Service
apiVersion: v1
metadata:
name: free5gc-nrf-service
spec:
selector:
app: free5gc-nrf
ports:
- protocol: TCP
targetPort: 29510
port: 29510
clusterIP: None