Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
cn5g
oai-cn5g-fed
Commits
49efcfdb
Commit
49efcfdb
authored
Jul 29, 2021
by
Sagar Arora
🚴🏻
Browse files
Updated helm charts
parent
07f8096e
Changes
11
Show whitespace changes
Inline
Side-by-side
charts/oai-amf/templates/deployment.yaml
View file @
49efcfdb
...
...
@@ -28,7 +28,7 @@ spec:
{{
- toYaml .Values.podSecurityContext | nindent 8
}}
containers
:
-
name
:
tcpdump
image
:
corfr/tcpdump:latest
image
:
"
{{
.Values.tcpdumpimage.repository
}}:{{
.Values.tcpdumpimage.version
}}"
{{
- if .Values.start.tcpdump
}}
command
:
-
/bin/sh
...
...
@@ -39,13 +39,13 @@ spec:
-
/bin/sleep
-
infinity
{{
- end
}}
{{
- if .Values.persisten
t
.sharedvolume
}}
{{
- if .Values.persisten
ce
.sharedvolume
}}
volumeMounts
:
-
mountPath
:
"
/pcap"
name
:
cn5g-pv
{{
- end
}}
-
name
:
amf
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.version
}}"
image
:
"
{{
.Values.
nf
image.repository
}}:{{
.Values.
nf
image.version
}}"
{{
- if .Values.resources.define
}}
resources
:
requests
:
...
...
@@ -58,7 +58,7 @@ spec:
securityContext
:
{{
- toYaml .Values.securityContext | nindent 12
}}
ports
:
-
containerPort
:
{{
.Values.service.
n1
Port
}}
-
containerPort
:
{{
.Values.service.
sctp
Port
}}
name
:
oai-amf
protocol
:
SCTP
-
containerPort
:
{{
.Values.service.http1Port
}}
...
...
@@ -304,10 +304,10 @@ spec:
configMapKeyRef
:
name
:
{{
.Chart.Name
}}
-configmap
key
:
operatorKey
{{
- if .Values.persisten
t
.sharedvolume
}}
{{
- if .Values.persisten
ce
.sharedvolume
}}
volumes
:
-
name
:
cn5g-pv
persisten
t
VolumeClaim
:
persisten
ce
VolumeClaim
:
claimName
:
cn5g-pvc
{{
- end
}}
dnsPolicy
:
ClusterFirst
...
...
charts/oai-amf/values.yaml
View file @
49efcfdb
...
...
@@ -5,13 +5,21 @@ replicaCount: 1
namespace
:
"
oai"
image
:
nf
image
:
registry
:
local
repository
:
oai-amf
# image name either locally present or in a public/private repository
repository
:
rdefosseoai/
oai-amf
# image name either locally present or in a public/private repository
version
:
v1.1.0
# image tag
# pullPolicy: IfNotPresent or Never or Always
pullPolicy
:
Always
tcpdumpimage
:
registry
:
local
repository
:
corfr/tcpdump
version
:
latest
#pullPolicy: IfNotPresent or Never or Always
pullPolicy
:
Always
serviceAccount
:
# Specifies whether a service account should be created
create
:
true
...
...
@@ -30,7 +38,7 @@ securityContext:
service
:
type
:
ClusterIP
n1
Port
:
38412
sctp
Port
:
38412
http1Port
:
80
http2Port
:
9090
...
...
@@ -42,7 +50,7 @@ start:
## This interface will be for N1/N2/NGAP
multus
:
create
:
fals
e
create
:
tru
e
n1IPadd
:
"
192.168.18.177"
n1Netmask
:
"
24"
n1Gateway
:
"
192.168.18.129"
...
...
charts/oai-nrf/templates/deployment.yaml
View file @
49efcfdb
...
...
@@ -24,7 +24,7 @@ spec:
{{
- toYaml .Values.podSecurityContext | nindent 8
}}
containers
:
-
name
:
tcpdump
image
:
corfr/tcpdump:latest
image
:
"
{{
.Values.tcpdumpimage.repository
}}:{{
.Values.tcpdumpimage.version
}}"
{{
- if .Values.start.tcpdump
}}
command
:
-
/bin/sh
...
...
@@ -41,7 +41,7 @@ spec:
name
:
cn5g-pv
{{
- end
}}
-
name
:
nrf
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.version
}}"
image
:
"
{{
.Values.
nf
image.repository
}}:{{
.Values.
nf
image.version
}}"
{{
- if .Values.resources.define
}}
resources
:
requests
:
...
...
charts/oai-nrf/templates/pvc.yaml
View file @
49efcfdb
{{
- if .Values.persisten
t
.sharedvolume
}}
{{
- if .Values.persisten
ce
.sharedvolume
}}
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
...
...
charts/oai-nrf/values.yaml
View file @
49efcfdb
...
...
@@ -6,13 +6,22 @@ replicaCount: 1
namespace
:
"
oai"
image
:
# NF image
nfimage
:
registry
:
local
repository
:
rdefosseoai/oai-nrf
version
:
v1.1.0
# pullPolicy: IfNotPresent or Never or Always
pullPolicy
:
Always
tcpdumpimage
:
registry
:
local
repository
:
oai-nrf
version
:
v1.1.0
# pullPolicy: IfNotPresent or Never or Always
pullPolicy
:
Always
serviceAccount
:
# Specifies whether a service account should be created
create
:
true
...
...
@@ -53,7 +62,7 @@ config:
persistence
:
sharedvolume
:
false
volum
n
eName
:
managed-nfs-storage
volumeName
:
managed-nfs-storage
size
:
1Gi
resources
:
...
...
charts/oai-smf/templates/deployment.yaml
View file @
49efcfdb
...
...
@@ -24,7 +24,7 @@ spec:
{{
- toYaml .Values.podSecurityContext | nindent 8
}}
containers
:
-
name
:
tcpdump
image
:
corfr/tcpdump:latest
image
:
"
{{
.Values.tcpdumpimage.repository
}}:{{
.Values.tcpdumpimage.version
}}"
{{
- if .Values.start.tcpdump
}}
command
:
-
/bin/sh
...
...
@@ -41,7 +41,7 @@ spec:
name
:
cn5g-pv
{{
- end
}}
-
name
:
smf
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.version
}}"
image
:
"
{{
.Values.
nf
image.repository
}}:{{
.Values.
nf
image.version
}}"
securityContext
:
{{
- toYaml .Values.securityContext | nindent 12
}}
ports
:
...
...
charts/oai-smf/values.yaml
View file @
49efcfdb
...
...
@@ -5,13 +5,21 @@ replicaCount: 1
namespace
:
"
oai"
image
:
nf
image
:
registry
:
local
repository
:
oai-smf
repository
:
rdefosseoai/
oai-smf
version
:
v1.1.0
#pullPolicy: IfNotPresent or Never or Always
pullPolicy
:
Always
tcpdumpimage
:
registry
:
local
repository
:
corfr/tcpdump
version
:
latest
#pullPolicy: IfNotPresent or Never or Always
pullPolicy
:
Always
imagePullSecrets
:
[]
serviceAccount
:
...
...
@@ -61,7 +69,7 @@ config:
amfIpv4Address
:
"
127.0.0.1"
# configure if NRF is not used
amfPort
:
"
80"
# configure if NRF is not used
amfApiVersion
:
"
v1"
# configure if NRF is not used
amfFqdn
:
"
localhost
"
# configure if NRF is not used
amfFqdn
:
"
oai-amf-svc
"
# configure if NRF is not used
udmIpv4Address
:
"
127.0.0.1"
# configure if UDM is used
udmPort
:
"
80"
# configure if UDM is used
udmApiVersion
:
"
v1"
# configure if UDM is used
...
...
@@ -71,10 +79,10 @@ config:
nrfApiVersion
:
"
v1"
nrfFqdn
:
"
oai-nrf-svc"
# configure if NRF can be reached using Kubernetes service
upfIpv4Address
:
"
127.0.0.1"
# configure if NRF is not used
upfFqdn0
:
"
localhost
"
# configure if NRF is not used and useFqdnDns is true
upfFqdn0
:
"
oai-spgwu-svc
"
# configure if NRF is not used and useFqdnDns is true
## currently only used by tcpdump container to store the tcpdump, this volume will be shared between all the network functions
persisten
t
:
persisten
ce
:
sharedvolume
:
false
# should be true when if wants to store the tcpdump of all the network functions at same place
volumneName
:
managed-nfs-storage
size
:
1Gi
...
...
charts/oai-spgwu-tiny/templates/deployment.yaml
View file @
49efcfdb
...
...
@@ -19,8 +19,8 @@ spec:
annotations
:
k8s.v1.cni.cncf.io/networks
:
>-
[{
"name": "{{ .Chart.Name }}-{{ .Values.namespace }}-net1",
"default-route": ["{{ .Values.
config.pgwuS
giGw }}"]
"name": "{{ .Chart.Name }}-{{ .Values.namespace }}-
n3-
net1",
"default-route": ["{{ .Values.
multus.s
giGw }}"]
}]
{{
- end
}}
spec
:
...
...
@@ -28,7 +28,7 @@ spec:
{{
- toYaml .Values.podSecurityContext | nindent 8
}}
containers
:
-
name
:
tcpdump
image
:
corfr/tcpdump:latest
image
:
"
{{
.Values.tcpdumpimage.repository
}}:{{
.Values.tcpdumpimage.version
}}"
{{
- if .Values.start.tcpdump
}}
command
:
-
/bin/sh
...
...
@@ -45,7 +45,7 @@ spec:
name
:
cn5g-pv
{{
- end
}}
-
name
:
spgwu
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.version
}}"
image
:
"
{{
.Values.
nf
image.repository
}}:{{
.Values.
nf
image.version
}}"
securityContext
:
{{
- toYaml .Values.securityContext | nindent 12
}}
ports
:
...
...
@@ -230,6 +230,7 @@ spec:
dnsPolicy
:
ClusterFirst
restartPolicy
:
Always
schedulerName
:
default-scheduler
serviceAccountName
:
{{
.Values.serviceAccount.name
}}
terminationGracePeriodSeconds
:
{{
.Values.terminationGracePeriodSeconds
}}
{{
- if .Values.nodeSelector
}}
nodeSelector
:
{{
- toYaml .Values.nodeSelector | nindent 4
}}
...
...
charts/oai-spgwu-tiny/templates/multus.yaml
View file @
49efcfdb
...
...
@@ -3,7 +3,7 @@
apiVersion
:
"
k8s.cni.cncf.io/v1"
kind
:
NetworkAttachmentDefinition
metadata
:
name
:
{{
.Chart.Name
}}
-{{ .Values.namespace }}-net1
name
:
{{
.Chart.Name
}}
-{{ .Values.namespace }}-
n3-
net1
spec
:
config
:
'
{
"cniVersion":
"0.3.0",
...
...
@@ -14,7 +14,7 @@ spec:
"type":
"static",
"addresses":
[
{
"address":
{{-
cat
.Values.
config
.n3Ip
"/"
.Values.
config
.n3Netmask
|
nospace
|
quote
}}
"address":
{{-
cat
.Values.
multus
.n3Ip
"/"
.Values.
multus
.n3Netmask
|
nospace
|
quote
}}
}
]
}
...
...
charts/oai-spgwu-tiny/values.yaml
View file @
49efcfdb
...
...
@@ -6,13 +6,19 @@ replicaCount: 1
namespace
:
"
oai"
image
:
nf
image
:
registry
:
local
repository
:
oai-spgwu
repository
:
rdefosseoai/
oai-spgwu
-tiny
version
:
v1.1.2
# pullPolicy: IfNotPresent or Never or Always
pullPolicy
:
Always
tcpdumpimage
:
registry
:
local
repository
:
corfr/tcpdump
version
:
latest
#pullPolicy: IfNotPresent or Never or Always
pullPolicy
:
Always
serviceAccount
:
# Specifies whether a service account should be created
...
...
@@ -30,8 +36,8 @@ securityContext:
service
:
type
:
ClusterIP
n4
Port
:
8805
# default port no need to change unless necessary
n3
Port
:
2152
# default port no need to change unless necessary
pfcp
Port
:
8805
# default port no need to change unless necessary
gtpu
Port
:
2152
# default port no need to change unless necessary
start
:
spgwu
:
true
...
...
@@ -42,7 +48,7 @@ multus:
create
:
true
n3Ip
:
"
192.168.18.179"
n3Netmask
:
"
24"
S
giGw
:
"
192.168.18.129"
s
giGw
:
"
192.168.18.129"
config
:
gwId
:
1
# no need to configure
...
...
@@ -77,7 +83,7 @@ config:
upfFqdn5g
:
"
oai-spgwu-tiny-svc"
# fqdn of upf
## currently only used by tcpdump container to store the tcpdump, this volume will be shared between all the network functions
persisten
t
:
persisten
ce
:
sharedvolume
:
false
# should be true when if wants to store the tcpdump of all the network functions at same place
volumneName
:
managed-nfs-storage
size
:
1Gi
...
...
docs/DEPLOY_SA5G_HC.md
View file @
49efcfdb
...
...
@@ -19,6 +19,11 @@ The cloud native network functions in production will be deployed using a produc

**Reading time: ~40mins**
**Tutorial replication time: ~1h30mins**
**TABLE OF CONTENTS**
1.
[
Description
](
#1-description
)
...
...
@@ -227,15 +232,15 @@ $ helm install nrf oai-nrf/
# wait for the pod to come up
$ helm install smf oai-smf/
# wait for the pod to come up
$ helm install
spgwu
oai-spgwu-tiny/
$ helm install
upf
oai-spgwu-tiny/
# wait for the pod to come up
$ helm list
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
amf
oai-5g-develop 1 2021-0
5-12 12:07:36.345877418
+0200 CEST deployed
oai-amf-0.1.0
0.1.0
mysql
oai-5g-develop 1 2021-0
5-12 11:09:32.597525506
+0200 CEST deployed
mysql-1.6.9
5.7.30
nrf oai-5g-develop 1 2021-0
5-12 11:32:43.648706741
+0200 CEST deployed oai-nrf-
0
.1.0
0
.1.0
smf oai-5g-develop 1 2021-0
5-12 12:05:38.251220635
+0200 CEST deployed oai-smf-
0
.1.0
0
.1.0
spgwu
oai-5g-develop 1 2021-0
5-12 12:08:31.408369994
+0200 CEST deployed oai-spgwu-tiny-
0
.1.
1
0
.1.
1
mysql
oai-5g-develop 1 2021-0
7-29 14:20:34.010881045
+0200 CEST deployed
mysql-1.6.9
5.7.30
amf
oai-5g-develop 1 2021-0
7-29 14:25:34.010881045
+0200 CEST deployed
oai-amf-1.1.0
1.1.0
nrf oai-5g-develop 1 2021-0
7-29 14:16:11.530949242
+0200 CEST deployed oai-nrf-
1
.1.0
1
.1.0
smf oai-5g-develop 1 2021-0
7-29 15:34:15.62785988
+0200 CEST
deployed oai-smf-
1
.1.0
1
.1.0
upf
oai-5g-develop 1 2021-0
7-29 15:28:04.773480519
+0200 CEST deployed oai-spgwu-tiny-
1
.1.
2
1
.1.
2
```
Now go ahead and use OAI-gNB/dsTest/gNBSIM or any other gNB or emulator to test the deployed core network.
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment