Skip to content

Commit

Permalink
Merge pull request #130 from lyz508/doc/update-free5gc-helm
Browse files Browse the repository at this point in the history
doc: Update free5GC Helm Installation
  • Loading branch information
ianchen0119 committed May 15, 2024
2 parents 35c4c04 + d366838 commit 5383f35
Showing 1 changed file with 36 additions and 15 deletions.
51 changes: 36 additions & 15 deletions docs/guide/7-free5gc-helm.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
# free5GC Helm Installation
## Prerequirements
### Microk8s Installation
- Install packages
### MicroK8s Installation
- Install MicroK8s
```
sudo snap install microk8s --classic --channel=1.29/stable
sudo snap install microk8s --classic --channel=1.28/stable
```
- Join the group
```
sudo usermod -a -G microk8s $USER
mkdir -p ~/.kube
chmod 0700 ~/.kube
```
- Re-enter the session
```
su - $USER
```
- Verify the Installation
```
microk8s status --wait-ready
```
- To [work with local kubectl](https://microk8s.io/docs/working-with-kubectl)
```
sudo snap install kubectl --classic
sudo snap install helm --classic
microk8s config > ~/.kube/config
su - $USER
```
- Verify the Installation
```
microk8s status --wait-ready
```
- Create namespace for free5gc
- Create namespace for free5GC
```
kubectl create ns free5gc
```
Expand Down Expand Up @@ -67,12 +77,18 @@
data:
cni_network_config: |-
{
# Append IP forwarding settings
"container_settings": {
"allow_ip_forwarding": true
}
# ...
"plugins": [
{
# Append IP forwarding settings
"container_settings": {
"allow_ip_forwarding": true
},
}
]
}
```
- Refer to the [Calico CNI Docs](https://docs.tigera.io/calico/latest/reference/configure-cni-plugins#container-settings)
2. Apply settings
```
kubectl apply -f /var/snap/microk8s/current/args/cni-network/cni.yaml
Expand Down Expand Up @@ -132,10 +148,14 @@
```

### Helm Chart
- Clone the repository
```
git clone https://github.com/free5gc/free5gc-helm.git
```
- Enter the directory: `free5gc-helm/charts/`
- free5GC
```
microk8s helm install -n free5gc free5gc-helm ./free5gc/
helm install -n free5gc free5gc-helm ./free5gc/
```
- Install with customized interface settings
```
Expand All @@ -146,7 +166,7 @@
```
- UERANSIM
```
microk8s helm install -n free5gc ueransim ./ueransim/
helm install -n free5gc ueransim ./ueransim/
```
- Verification
- List installed charts
Expand Down Expand Up @@ -177,6 +197,7 @@
![](./images/7-2.png)
- Ping externel network with tunnel
```
kubectl exec -it -n free5gc deployment/ueransim-ue -- ping -I uesimtun0 8.8.8.8
kubectl exec -it -n free5gc deployment/ueransim-ue \
-- ping -I uesimtun0 8.8.8.8
```
![](./images/7-3.png)

0 comments on commit 5383f35

Please sign in to comment.