Skip to content

Commit

Permalink
Merge pull request #1831 from cncf/new1803merge
Browse files Browse the repository at this point in the history
  • Loading branch information
denverwilliams authored Oct 2, 2023
2 parents dc0d54a + fd7f9db commit 8fdc242
Show file tree
Hide file tree
Showing 1,298 changed files with 134,150 additions and 52 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,6 @@ falco_rule.yaml
tools/custom-kyverno-policies/
tools/chaos-experiments
/tools/kubescape
ueransim-gnb/
gnb-ues-values.yaml
.icr*
84 changes: 84 additions & 0 deletions embedded_files/ue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# IMSI number of the UE. IMSI = [MCC|MNC|MSISDN] (In total 15 or 16 digits)

supi: 'imsi-{{ .Values.mcc }}{{ .Values.mnc }}{{ .Values.ues.initialMSISDN }}'
mcc: '{{ .Values.mcc }}'
mnc: '{{ .Values.mnc }}'

# SUCI Protection Config
{{ if .Values.protectionScheme }}
protectionScheme: '{{ .Values.protectionScheme }}'
{{ end }}
{{ if .Values.publicKey }}
homeNetworkPublicKey: '{{ .Values.publicKey }}'
{{ end }}
{{ if .Values.publicKeyId }}
homeNetworkPublicKeyId: '{{ .Values.publicKeyId }}'
{{ end }}
{{ if .Values.routingIndicator }}
routingIndicator: '{{ .Values.routingIndicator }}'
{{ end }}


# Permanent subscription key
key: '{{ .Values.ues.key }}'
# Operator code (OP or OPC) of the UE
op: '{{ .Values.ues.op }}'
# This value specifies the OP type and it can be either 'OP' or 'OPC'
opType: '{{ .Values.ues.opType }}'
# Authentication Management Field (AMF) value
amf: '8000'
# IMEI number of the device. It is used if no SUPI is provided
imei: '356938035643803'
# IMEISV number of the device. It is used if no SUPI and IMEI is provided
imeiSv: '4370816125816151'

# List of gNB IP addresses for Radio Link Simulation
gnbSearchList:
- ${GNB_IP}

# UAC Access Identities Configuration
uacAic:
mps: false
mcs: false

# UAC Access Control Class
uacAcc:
normalClass: 0
class11: false
class12: false
class13: false
class14: false
class15: false

# Initial PDU sessions to be established
sessions:
{{- range .Values.ues.apnList }}
- {{- toYaml . | nindent 4 }}
{{- end }}

# Configured NSSAI for this UE by HPLMN
configured-nssai:
- sst: {{ .Values.sst }}
sd: {{ .Values.sd }}

# Default Configured NSSAI for this UE
default-nssai:
- sst: {{ .Values.sst }}
sd: {{ .Values.sd }}

# Supported encryption algorithms by this UE
integrity:
IA1: true
IA2: true
IA3: true

# Supported integrity algorithms by this UE
ciphering:
EA1: true
EA2: true
EA3: true

# Integrity protection maximum data rate for user plane
integrityMaxRate:
uplink: 'full'
downlink: 'full'
82 changes: 82 additions & 0 deletions sample-cnfs/sample_open5gs/5g-core-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
hss:
enabled: false

mme:
enabled: false

pcrf:
enabled: false

smf:
config:
pcrf:
enabled: false

sgwc:
enabled: false

sgwu:
enabled: false

udm:
extraVolumeMounts:
- name: curve
mountPath: /etc/open5gs/hnet/curve25519-1.key
subPath: curve25519-1.key
- name: secp
mountPath: /etc/open5gs/hnet/secp256r1-2.key
subPath: secp256r1-2.key
extraVolumes:
- name: curve
configMap:
name: key
items:
- key: curve
path: curve25519-1.key
- name: secp
configMap:
name: key
items:
- key: secp
path: secp256r1-2.key

amf:
config:
guamiList:
- plmn_id:
mcc: "999"
mnc: "70"
amf_id:
region: 2
set: 1
taiList:
- plmn_id:
mcc: "999"
mnc: "70"
tac: [1]
plmnList:
- plmn_id:
mcc: "999"
mnc: "70"
s_nssai:
- sst: 1
sd: "0x111111"

nssf:
config:
nsiList:
- nrf:
hostname: "" # if empty default is autogenerated open5gs svc fullname
port: 7777
sst: 1
sd: "0x111111"

webui:
ingress:
enabled: false

populate:
enabled: true
initCommands:
- open5gs-dbctl add_ue_with_slice 999700000000001 465B5CE8B199B49FAA5F0A2EE238A6BC E8ED289DEBA952E4283B54E88E6183CA internet 1 111111
- open5gs-dbctl add_ue_with_slice 999700000000002 465B5CE8B199B49FAA5F0A2EE238A6BC E8ED289DEBA952E4283B54E88E6183CA internet 1 111111
25 changes: 25 additions & 0 deletions sample-cnfs/sample_open5gs/cnf-testsuite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
helm_directory: open5gs
release_name: open5gs
allowlist_helm_chart_container_names: []
#optional 5gcore tag
core: app.kubernetes.io/name=amf
amf_pod_name: open5gs-amf-ngap
mmc: '999'
mnc: '70'
sst: 1
sd: '0x111111'
tac: '0001'
protectionScheme: 1
publicKey: 0ac95ceeb93308df01be82ff9994d8330e38804ece1700ee4b972d8028796275
publicKeyId: 1
routingIndicator: '0000'
enabled: true
count: 1
initialMSISDN: '0000000001'
key: 465B5CE8B199B49FAA5F0A2EE238A6BC
op: E8ED289DEBA952E4283B54E88E6183CA
opType: OPC
type: 'IPv4'
apn: 'internet'
emergency: false
23 changes: 23 additions & 0 deletions sample-cnfs/sample_open5gs/key-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

openssl genpkey -algorithm X25519 > curve25519-1.key
KEY_CURVE=$(cat curve25519-1.key)

openssl ecparam -name prime256v1 -genkey -conv_form compressed > secp256r1-2.key
KEY_SECP=$(cat secp256r1-2.key)

cat << EOF > ./configmap.yml
apiVersion: v1
kind: ConfigMap
metadata:
name: key
data:
curve: |-
$KEY_CURVE
secp: |-
$KEY_SECP
EOF

sed -i '8,9s/^/ /' ./configmap.yml
sed -i '13,19s/^/ /' ./configmap.yml
57 changes: 57 additions & 0 deletions sample-cnfs/sample_open5gs/open5gs/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
version: 1.17.1
- name: mongodb
repository: https://charts.bitnami.com/bitnami
version: 12.1.31
- name: open5gs-amf
repository: file://../open5gs-amf
version: 2.0.12
- name: open5gs-ausf
repository: file://../open5gs-ausf
version: 2.0.6
- name: open5gs-bsf
repository: file://../open5gs-bsf
version: 2.0.6
- name: open5gs-hss
repository: file://../open5gs-hss
version: 2.0.4
- name: open5gs-mme
repository: file://../open5gs-mme
version: 2.0.5
- name: open5gs-nrf
repository: file://../open5gs-nrf
version: 2.0.4
- name: open5gs-nssf
repository: file://../open5gs-nssf
version: 2.0.6
- name: open5gs-pcf
repository: file://../open5gs-pcf
version: 2.0.6
- name: open5gs-pcrf
repository: file://../open5gs-pcrf
version: 2.0.4
- name: open5gs-sgwc
repository: file://../open5gs-sgwc
version: 2.0.4
- name: open5gs-sgwu
repository: file://../open5gs-sgwu
version: 2.0.6
- name: open5gs-smf
repository: file://../open5gs-smf
version: 2.0.9
- name: open5gs-udm
repository: file://../open5gs-udm
version: 2.0.6
- name: open5gs-udr
repository: file://../open5gs-udr
version: 2.0.6
- name: open5gs-upf
repository: file://../open5gs-upf
version: 2.0.7
- name: open5gs-webui
repository: file://../open5gs-webui
version: 2.0.3
digest: sha256:3d382af90f9faec0aef33f99a2e68555684a346348771e7fcbf805637f76721e
generated: "2023-04-10T14:31:08.84034525Z"
105 changes: 105 additions & 0 deletions sample-cnfs/sample_open5gs/open5gs/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
apiVersion: v2
appVersion: 2.4.11
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
tags:
- bitnami-common
version: 1.x.x
- condition: mongodb.enabled
name: mongodb
repository: https://charts.bitnami.com/bitnami
version: ~12.1.19
- alias: amf
condition: amf.enabled
name: open5gs-amf
repository: file://../open5gs-amf
version: ~2.0.0
- alias: ausf
condition: ausf.enabled
name: open5gs-ausf
repository: file://../open5gs-ausf
version: ~2.0.0
- alias: bsf
condition: bsf.enabled
name: open5gs-bsf
repository: file://../open5gs-bsf
version: ~2.0.0
- alias: hss
condition: hss.enabled
name: open5gs-hss
repository: file://../open5gs-hss
version: ~2.0.0
- alias: mme
condition: mme.enabled
name: open5gs-mme
repository: file://../open5gs-mme
version: ~2.0.0
- alias: nrf
condition: nrf.enabled
name: open5gs-nrf
repository: file://../open5gs-nrf
version: ~2.0.0
- alias: nssf
condition: nssf.enabled
name: open5gs-nssf
repository: file://../open5gs-nssf
version: ~2.0.0
- alias: pcf
condition: pcf.enabled
name: open5gs-pcf
repository: file://../open5gs-pcf
version: ~2.0.0
- alias: pcrf
condition: pcrf.enabled
name: open5gs-pcrf
repository: file://../open5gs-pcrf
version: ~2.0.0
- alias: sgwc
condition: sgwc.enabled
name: open5gs-sgwc
repository: file://../open5gs-sgwc
version: ~2.0.0
- alias: sgwu
condition: sgwu.enabled
name: open5gs-sgwu
repository: file://../open5gs-sgwu
version: ~2.0.0
- alias: smf
condition: smf.enabled
name: open5gs-smf
repository: file://../open5gs-smf
version: ~2.0.0
- alias: udm
condition: udm.enabled
name: open5gs-udm
repository: file://../open5gs-udm
version: ~2.0.0
- alias: udr
condition: udr.enabled
name: open5gs-udr
repository: file://../open5gs-udr
version: ~2.0.0
- alias: upf
condition: upf.enabled
name: open5gs-upf
repository: file://../open5gs-upf
version: ~2.0.0
- alias: webui
condition: webui.enabled
name: open5gs-webui
repository: file://../open5gs-webui
version: ~2.0.0
description: 'Helm chart to deploy Open5gs services on Kubernetes. '
home: https://github.com/gradiant/openverso-charts
icon: https://open5gs.org/assets/img/open5gs-logo.png
keywords:
- epc
- ngc
maintainers:
- email: [email protected]
name: cgiraldo
name: open5gs
sources:
- http://open5gs.org
version: 2.0.11
Loading

0 comments on commit 8fdc242

Please sign in to comment.