-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: refactor deployment scenarios (#407)
- Loading branch information
Showing
56 changed files
with
1,204 additions
and
2,458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Deployment examples | ||
The eUPF can be integrated with different 5G Core implementations in different scenarios. | ||
|
||
eUPF pod outbound connection is pure routed at the node. There is no address translation inside pod, so we avoid such lack of throughtput. | ||
|
||
BGP is used to announce the subscriber's subnet to the route table of Kubernetes cluster. | ||
|
||
## [Open5GS + Calico BGP](./open5gs-with-bgp/README.md) | ||
|
||
## [Open5GS + Calico BGP with Slices](./open5gs-with-bgp-and-slices/README.md) | ||
|
||
## [Free5GC + Calico BGP](./free5gc-with-bgp/README.md) | ||
|
||
## [Free5GC UpLink CLassifier (ULCL) architecture](./free5gc-ulcl/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
NAMESPACE?=free5gc | ||
HELM_VALUES_DIR?=./values | ||
|
||
HELM_ARGS?=--timeout 30s --create-namespace | ||
HELM_ACTION?=upgrade --install | ||
|
||
free5gc: | ||
helm $(HELM_ACTION) \ | ||
free5gc towards5gs/free5gc \ | ||
--version 1.1.7 \ | ||
--values $(HELM_VALUES_DIR)/global.yaml \ | ||
--values $(HELM_VALUES_DIR)/free5gc.yaml \ | ||
-n $(NAMESPACE) \ | ||
$(HELM_ARGS) | ||
|
||
calico: | ||
kubectl apply -f $(HELM_VALUES_DIR)/../manifests/calico-pools.yaml | ||
kubectl apply -f $(HELM_VALUES_DIR)/../manifests/calico-bgp.yaml | ||
|
||
upf: | ||
helm $(HELM_ACTION) \ | ||
eupf oci://registry-1.docker.io/edgecom/eupf \ | ||
--version 0.4.0 \ | ||
--values $(HELM_VALUES_DIR)/eupf.yaml \ | ||
-n $(NAMESPACE) \ | ||
$(HELM_ARGS) | ||
|
||
ue1: | ||
helm $(HELM_ACTION) \ | ||
ueransim1 towards5gs/ueransim \ | ||
--values $(HELM_VALUES_DIR)/global.yaml \ | ||
--values $(HELM_VALUES_DIR)/ueransim.yaml \ | ||
--version 2.0.17 \ | ||
-n $(NAMESPACE) \ | ||
$(HELM_ARGS) | ||
|
||
clean: | ||
helm delete free5gc -n $(NAMESPACE) || true | ||
helm delete eupf -n $(NAMESPACE) || true | ||
helm delete ueransim1 -n $(NAMESPACE) || true | ||
kubectl delete -f $(HELM_VALUES_DIR)/../manifests/calico-pools.yaml || true | ||
kubectl delete -f $(HELM_VALUES_DIR)/../manifests/calico-bgp.yaml || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Free5GC + eUPF with Calico BGP | ||
|
||
Be careful, this document work in progress | ||
|
||
![](./schema.png) | ||
|
||
## Requirements | ||
|
||
- Kubernetes cluster with Calico and Multus CNI | ||
- [helm](https://helm.sh/docs/intro/install/) installed | ||
- calico backend configured as BIRD | ||
|
||
change `calico_backend` parameter to `bird` in configmap with name `calico-config` and then restart all pods with name `calico-node-*` | ||
|
||
|
||
- configure helm repos | ||
|
||
``` | ||
helm repo add towards5gs https://raw.githubusercontent.com/Orange-OpenSource/towards5gs-helm/main/repo/ | ||
helm repo update | ||
``` | ||
- update values files, you should set name of network interface in file `global.yaml` (parameter masterIf) | ||
## Deployment steps | ||
1. install free5gc | ||
`make free5gc` | ||
1. create subscriber in free5gc via WebUI | ||
redirect port from webui pod to localhost | ||
```powershell | ||
kubectl port-forward service/webui-service 5000:5000 -n free5gc | ||
``` | ||
open http://127.0.0.1:5000 in your browser (for auth use user "admin" with password "free5gc"), go to menu "subscribers", click "new subscriber", leave all values as is, press "submit" | ||
close port forward with `Ctrl + C` | ||
1. configure calico BGP settings. Here, we configure Calico BGP peer and create Calico IP Pool (for NAT) | ||
`make calico` | ||
1. install eupf | ||
`make upf` | ||
1. install UERANSim | ||
`make ue1` | ||
## Check steps | ||
1. exec shell in UE pod | ||
`kubectl -n free5gc exec -ti deployment/ueransim-ue -- /bin/bash` | ||
1. run ICMP test | ||
`ping -I uesimtun0 1.1.1.1` | ||
## Undeploy steps | ||
1. undeploy all | ||
`make clean` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.