Skip to content

Commit

Permalink
Merge pull request #147 from lyz508/feat/update-helm-v342
Browse files Browse the repository at this point in the history
feat: update installation guide to support free5gc-helm v3.4.2 installation
  • Loading branch information
ianchen0119 authored Jul 17, 2024
2 parents 116a2b5 + affe85a commit b4977bc
Showing 1 changed file with 43 additions and 3 deletions.
46 changes: 43 additions & 3 deletions docs/guide/7-free5gc-helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,20 @@
}
```
- Refer to the [Calico CNI Docs](https://docs.tigera.io/calico/latest/reference/configure-cni-plugins#container-settings)
2. Apply settings
2. `/var/snap/microk8s/current/args/kubelet`
- append the following line
```
--allowed-unsafe-sysctls "net.ipv4.ip_forward"
```
3. Apply settings
```
kubectl apply -f /var/snap/microk8s/current/args/cni-network/cni.yaml
```
4. Restart MicroK8s
```
microk8s stop
microk8s start
```
- **Otherwise,** Use `kube-ovn` CNI plugin
```
sudo microk8s enable kube-ovn --force
Expand All @@ -114,14 +124,14 @@

## Installation
### Create Persistent Volumn
- Use `kubectl apply` to declarative create persistent volume
- Use `kubectl apply` to declarative create persistent volume for mongo
- `kubectl apply -f persistent-vol-for-mongodb.yaml`
- `persistent-vol-for-mongodb.yaml`
```yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: example-local-pv9
name: free5gc-pv-mongo
labels:
project: free5gc
spec:
Expand All @@ -130,6 +140,7 @@
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: microk8s-hostpath
local:
path: </path/to/storage>
nodeAffinity:
Expand All @@ -142,6 +153,35 @@
- <work-node-name>
```
- directory on `/path/to/storage` should be created previously
- Use `kubectl apply` to declarative create persistent volume for `nrf.pem`
- `kubectl apply -f persistent-vol-for-cert.yaml`
- `persistent-vol-for-cert.yaml`
```yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: free5gc-pv-cert
labels:
project: free5gc
spec:
capacity:
storage: 2Mi
accessModes:
- ReadOnlyMany
persistentVolumeReclaimPolicy: Retain
storageClassName: microk8s-hostpath
local:
path: </path/to/storage>
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- <work-node-name>
```
- directory on `/path/to/storage` should be created previously
- Check persistent volume
```
kubectl get persistentvolume
Expand Down

0 comments on commit b4977bc

Please sign in to comment.