Instruction how to run CDS on Microk8s.
System Setup:
Make sure to have the correct versions of Kubernetes, kubectl and Helm installed to match the desired ONAP version. Find out required versions for onap e.g. from https://docs.onap.org/en/latest/submodules/oom.git/docs/oom_cloud_setup_guide.html. Guide is tested on a dedicated linux box (Ubuntu 18_04).
...
Code Block | ||||
---|---|---|---|---|
| ||||
microk8s enable storage microk8s enable helm microk8s enable dns |
Note the The default storage class with the following command, it class is required in the Helm deploy command later on, therefore take note of it with the following command.
Code Block | ||||
---|---|---|---|---|
| ||||
microk8s kubectl get sc --all-namespaces
|
Example output:
Code Block | ||||
---|---|---|---|---|
| ||||
NAME PROVISIONER AGE
microk8s-hostpath (default) microk8s.io/hostpath 29s
|
ONAP Helm charts
Clone ONAP Helm charts for specific release including submodules
git clone --branch frankfurt--recurse-submodules "https://gerrit.onap.org/r/oom"
Change to kubernetes dir
cd oom/kubernetes
Initialize Helm and configure Tiller
Code Block language bash title Configure Tiller microk8s kubectl -n kube-system create serviceaccount tiller microk8s kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller microk8s helm init --service-account tiller microk8s kubectl -n kube-system rollout status deploy/tiller-deploy
Start Helm service and initialize local Helm repository
make repo
# This will do same as:helm serve &
helm repo add local http://127.0.0.1:8879Package ONAP Helm charts
make
Deploy CDS
Run the following Helm command on oom/kubernetes directory do deploy CDS. Note that '--set global.masterPassword=random' is required for Frankfurt and probably newer releases. Storage class needs to be storage class the one from the section of Microk8s setup.
...