This tutorila illustrates an example on how to build kube5g and deploy LTE-OAI network on kubernets.
This tutorila illustrates how to build kube5g and deploy mosaic5g operaor, which is built using [Openshift operator SDK](https://github.com/operator-framework/operator-sdk). This tutorial will use [microk8s](https://microk8s.io/) to use [kubernetes](https://kubernetes.io/). For more information on the operator, please visite the official site of [openshift operator](https://www.openshift.com/learn/topics/operators).
More tutorials are availables on [kube5g-tutorials](https://gitlab.eurecom.fr/osama.arouk/kube5g/wikis/home)
# How to deploy OAI-LTE using Kubernetes
# How to deploy OAI-LTE in Kubernetes using mosaic5g-operator
## Requirements
The following requirements shall be met to sucessfully deploy 4G network using docker:
...
...
@@ -16,7 +16,7 @@ The following requirements shall be met to sucessfully deploy 4G network using d
For this tutorial we use the following:
- GigaByte Box with ubuntu 16.04 and 16 BG RAM
- microk8s version: v1.14.10
- microk8s version: v1.14
- kubectl version: 1.17.3
- USRP: B210 mini
- Phone: Google pixel 2
...
...
@@ -26,44 +26,101 @@ The following figure illustrates the network that we will deploy. It is composed

## kube5g setup
*
* Use the build_m5g script to install the requirements of kube5g
```bash
$ ./build_m5g --install-kube5g-req
````
* Use the build_m5g script to build kube5g:
* Build kube5g using build_m5g script:
```bash
$ ./build_m5g -k
````
```
* Add ```--allow-privileged=true``` to both kubelet and kube-apiserver the microk8s, and then restart the services
- Edit the files
*Install the requirements of kube5g
- Either using the build_m5g script:
```bash
# kubelet config. Note that you can you your favirite editor, f.g. vim, nano, etc.
sudo vim /var/snap/microk8s/current/args/kubelet
$ ./build_m5g -i
```
- Or using the script of mosaic5g-operator:
1. go to the following directory ```mosaic5g_DIR/kube5g/openshift/m5g-operator``` (it is assumed that you are already in the directory ```mosaic5g_DIR```)
```bash
#kube-apiserver config. Note that you can you your favirite editor, f.g. vim, nano, etc.
sudo vim /var/snap/microk8s/current/args/kube-apiserver
$ cd kube5g/openshift/m5g-operator
```
- Restart services:
2. Install the requirements of mosaic5g-operator by: