Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
2f5e677
helm3 initial commit - WIP
lionelgo Apr 28, 2020
ea842dc
helm3 WIP multus
lionelgo Apr 28, 2020
f56bb99
helm3 WIP rbac
lionelgo Apr 28, 2020
a255792
WIP helm3 install spgwc in an oc project called onap-helm-test
lionelgo Apr 30, 2020
84eacb7
helm3 WIP spgwc
lionelgo May 4, 2020
241e615
helm3 WIP spgwu
lionelgo May 4, 2020
6bbf5e6
WIP helm3 spgwc - startup of spgwc seems ok
lionelgo May 5, 2020
9fdb2d9
wip helm3 spgwu: helmignore
lionelgo May 5, 2020
7e35a95
helm3 spgwu: CX with spgw-c is fine for project oai
lionelgo May 5, 2020
ec5f41d
Force use local interface lo for S5c
lionelgo Aug 28, 2020
51ced31
Can start pod with image genererated in openair-spgwu-tiny GH repo
lionelgo Aug 28, 2020
8c47a21
helm for https://github.com/OPENAIRINTERFACE/openair-mme/tree/helm3.1…
lionelgo Aug 31, 2020
3dd98f9
WIP helm HSS (certs volume todo)
lionelgo Aug 31, 2020
dc61300
helm HSS deploy seems fine, todo test db provisionning
lionelgo Sep 1, 2020
09e8738
WIP Changed IP addresses of LTE NW + misc fixes
lionelgo Sep 2, 2020
3034f75
Helm renamed SPGWU container
lionelgo Sep 2, 2020
8e3e66c
Helm spgw c/u use port values
lionelgo Sep 2, 2020
714c257
Helm spgwu right spgwc address (SX association is fine)
lionelgo Sep 2, 2020
aabd548
Helm mme right s1c S11 ip addresses
lionelgo Sep 2, 2020
abfc3db
WIP Helm HSS: populate cassandra DB is fine, but may be to be moved e…
lionelgo Sep 8, 2020
a8abd0e
Helm HSS
lionelgo Sep 9, 2020
a6bb212
Helm WIP mme
lionelgo Sep 10, 2020
d9ab9c5
Create README.md
lionelgo Sep 11, 2020
f0f5d22
Update README.md
lionelgo Sep 11, 2020
a289117
Update README.md
lionelgo Sep 11, 2020
5bbd73c
Update README.md
lionelgo Sep 11, 2020
bbd5e0d
Update README.md
lionelgo Sep 11, 2020
54d0934
Update README.md
lionelgo Sep 11, 2020
1eea307
helm: service sctp port 36413 for S1AP
lionelgo Sep 14, 2020
f15d427
helm: create db schema before hss starts
lionelgo Sep 14, 2020
0269223
Merge branch 'helm3.1-onap-sync-with-cn-split-repos' of https://githu…
lionelgo Sep 14, 2020
844de4c
SCTP enabled
lionelgo Sep 15, 2020
a6a8103
helm 3.1 link
lionelgo Sep 15, 2020
1f7d71a
check SCTP
lionelgo Sep 15, 2020
4526f1e
Update README.md
lionelgo Sep 15, 2020
f3fbb98
helm readme: k8s repo
lionelgo Sep 15, 2020
ba17e67
Update README.md
lionelgo Sep 15, 2020
e41d1cd
helm readme typo
lionelgo Sep 15, 2020
b6512e2
Helm deploy HSS on oai namespace
lionelgo Sep 16, 2020
40c7d09
Helm deploy MME on oai namespace
lionelgo Sep 17, 2020
fbef1d2
Helm deploy SPGWC on oai namespace
lionelgo Sep 17, 2020
48d0f91
Helm deploy SPGWU on oai namespace
lionelgo Sep 17, 2020
b578df0
Update README.md
lionelgo Sep 17, 2020
d139a48
Helm: MME deployment on node perse
lionelgo Oct 1, 2020
b0c5897
helm MME: fix oai namespace
lionelgo Oct 1, 2020
78da674
Helm 4G CN S1C-S1U-S6A on network 18
lionelgo Oct 1, 2020
3707457
Helm spgwu typo exposed S1U IP address
lionelgo Oct 1, 2020
62a83b4
Change HSS parameters for IMSI TIM (222 01)
lionelgo Oct 1, 2020
9839a9d
[SPGW-U] adding possibility to enable NAT on UE IP pool
rdefosse Nov 3, 2020
4faad7d
DB : populate mme table with values if values not exist
lionelgo Nov 6, 2020
b9ffc69
rbac include namespace name
lionelgo Nov 6, 2020
0ae0efe
HSS,MME domains name can be different (HSS in oc ns1, MME in OC ns2)
lionelgo Nov 6, 2020
42674fd
moving to TIM PLMN for 5G NSA usage
rdefosse Nov 19, 2020
ae95ca1
[mme]: persistance storage for tcpdump added to store .pcap
mismail820 Nov 22, 2020
c004bc4
[spgwu] fix internet access
mismail820 Nov 30, 2020
87bae6e
removing static IP allocation scheme
rdefosse Dec 7, 2020
dc7561c
spgwu-tiny additions
lionelgo Jan 19, 2021
d12ffee
sync
lionelgo Jan 19, 2021
d2707b6
sync with oai OC project
lionelgo Jan 19, 2021
4ac198e
mme magma-oai addition
lionelgo Jan 19, 2021
accaeb0
stable tag for images, S1C,S11,SX,S1U,SGi reachable on public networt…
lionelgo Jan 19, 2021
c1961d0
Update README.md
lionelgo Jan 20, 2021
ff6ee93
sync actual deployment on OC EURECOM, project oai
lionelgo Jan 21, 2021
b2f343a
update from latest trials on OC
lionelgo Apr 23, 2021
1d2e851
Update HSS image repository
lionelgo Aug 16, 2021
ca816ee
upgrade magma mme config file
lionelgo Aug 18, 2021
438546b
charts in progress
lionelgo May 18, 2022
c2807d4
fix the charts with right permissions
May 19, 2022
f40831e
updated readme
arora-sagar May 19, 2022
4e86151
Fixing hss image tag, cassandra keyspace - WIP
lionelgo May 20, 2022
f827f3d
hss image version from values, not chart App version
lionelgo May 20, 2022
c0171d8
HSS starting
lionelgo May 25, 2022
0bfbede
realms update
lionelgo May 25, 2022
8d47e18
fixed the persistent volume section
arora-sagar May 25, 2022
3cf5aa5
tweak freeDiameter config, prepare for redis if necessary
lionelgo May 30, 2022
9fb9833
PVC for logs independant from network functions
lionelgo May 31, 2022
72ea36d
use right hss image
lionelgo May 31, 2022
ff3f66c
init container for mme for self provisionning mme
lionelgo May 31, 2022
833d73b
typo in spgwc json config file
lionelgo May 31, 2022
1b40919
chart spgwc: update config file
lionelgo May 31, 2022
6a560f1
4G helms seems to work
lionelgo May 31, 2022
c490362
thread pool size shrinked to 1 due to non-rt kernel
lionelgo Jun 2, 2022
4dc33af
20899 IMSI base for populating HSS
lionelgo Sep 7, 2022
73e3e99
added APNI in spgwc configuration file (yaml)
lionelgo Sep 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,17 @@ To remove all resources from the 'oai' namespace plus delete the namespace itsel
```sh
hack/clean_oai_on_k8s
```

### Running with helm
The full automation of 4G components is in progress. This is why it is still needed to follow the sequence listed bellow.
```
cd openair-k8s/charts
helm install spgwc oai-spgwc; helm install mmme magma-oai-mme ; sleep 15; helm install spgwu oai-spgwu-tiny
```

### Cleaning
To remove a component from running on the cluster, execute:
```
helm uninstall mme
```

89 changes: 89 additions & 0 deletions charts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Deploy OAI CN with helm charts on Open Shift (Work In Progress)

## Prerequisites
- Assuming you are using Open Shift Server Version: 4.9.X, Kubernetes Version: v1.17.1+9d33dd3
- Assuming you have installed [helm v3.1.0](https://github.com/helm/helm/releases/tag/v3.1.0) on the cluster node from which you type helm commands.
- Assuming you have cloned the [openair-k8s](https://github.com/OPENAIRINTERFACE/openair-k8s) repo on the cluster node from which you type helm commands.
- Assuming SCTP protocol is [enabled on the cluster](https://docs.openshift.com/container-platform/4.4/networking/using-sctp.html#nw-sctp-enabling_using-sctp)

You can check if SCTP is enabled by running a client/server [basic app](https://docs.openshift.com/container-platform/4.4/networking/using-sctp.html#nw-sctp-verifying_using-sctp)

## Build Network functions images
For all network functions (HSS, MME, SPGW-C, SPGW-U) you have to build an image:
Please refer to:
1. MME: https://github.com/magma/magma
1. HSS: https://github.com/OPENAIRINTERFACE/openair-hss/blob/helm3.1-onap-sync-with-cn-split-repos/openshift
1. SPGW-C: https://github.com/lionelgo/openair-spgwc/tree/multi-spgwu/openshift
1. SPGW-U: https://github.com/lionelgo/openair-spgwu-tiny/tree/multi-spgwu/openshift

On francelab cluster be aware that certificates (/etc/rhsm/ca/redhat-uep.pem) are renewed every month, so you may have to redo the "pki-entitlement" phase every month
(only required if you want to install some packages inside the image)

## Deploy Cassandra
### Storage class
The envisionned storage for cassandra is nfs (provisioner example.com/nfs), storage class name is "nfs-client" (on our cluster).

### Deployment
Work is in progress, please follow the described deployment sequence (cassandra, HSS, SPGWC, SPGWU, MME).

``` bash
oc new-project oai4g
```

Logged as administrator of your namespace on oc (not kubeadmin):
```bash
helm install cassandra cassandra/
```

This will create 3 pods (namespace is 'oai4g' here)

```bash
oai4g cassandra-0 1/1 Running 0 8m39s
oai4g cassandra-1 1/1 Running 0 7m
oai4g cassandra-2 1/1 Running 0 5m13s
```

Cassandra service name is `cassandra` username is `cassandra` and password `cassandra`

## Deploy HSS
Since the deployment uses multus for creating network, your account should have enough permission to create multus objects

```bash
K8S_DIR="/path-to-your-openair-k8s-cloned-dir"
helm install oai-hss $K8S_DIR/charts/oai-hss
```

## Deploy SPGW-C
Since the deployment uses multus for creating network, your account should have enough permission to create multus objects

```bash
K8S_DIR="/path-to-your-openair-k8s-cloned-dir"
helm install oai-spgwc $K8S_DIR/charts/oai-spgwc
```

## Deploy MME
Since the deployment uses multus for creating network, your account should have enough permission to create multus objects

```bash
K8S_DIR="/path-to-your-openair-k8s-cloned-dir"
helm install magma-mme $K8S_DIR/charts/magma-oai-mme
```

## Deploy SPGW-U
Since the deployment uses multus for creating network, your account should have enough permission to create multus objects

```bash
K8S_DIR="/path-to-your-openair-k8s-cloned-dir"
helm install oai-spgwu-tiny $K8S_DIR/charts/oai-spgwu-tiny --set serviceAccount.name="oai-spgwu1-tiny-sa" --set lte.instance="0" --set lte.fqdn="gwu1.spgw.node.epc.mnc099.mcc208.3gppnetwork.org" --set lte.spgwIpOneIf="192.168.18.151" --set lte.netUeIp="192.168.21.0/24"
```

## Un-deploy NFs
Upon your needs:

```
helm uninstall magma-mme oai-spgwc oai-spgwu-tiny
```

When un-deploy cassandra the helm charts don't really remove cassandra pvc so you need to manually remove it

oc delete pvc cassandra-0 cassandra-1 cassandra-2
17 changes: 17 additions & 0 deletions charts/cassandra/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
OWNERS
15 changes: 15 additions & 0 deletions charts/cassandra/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
name: cassandra
version: 0.15.4
appVersion: 3.11.6
description: DEPRECATED Apache Cassandra is a free and open-source distributed database management
system designed to handle large amounts of data across many commodity servers, providing
high availability with no single point of failure.
icon: https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Cassandra_logo.svg/330px-Cassandra_logo.svg.png
keywords:
- cassandra
- database
- nosql
home: http://cassandra.apache.org
deprecated: false
engine: gotpl
Loading