Install Kubernetes with minikube

Instruction for installing minikube for running any ONAP component or whole onap.

Make sure you install correct versions of Kubernetes, kubectl and Helm to match the particular ONAP version. Find out required versions for onap e.g. from  https://docs.onap.org/projects/onap-oom/en/latest/oom_cloud_setup_guide.html#oom-cloud-setup-guide.

Minikube

There's not known requirements for minikube version, you may install latest version.

Kubernetes

Example with ONAP El-Alto version of Kubernetes

Start minikube
minikube start --kubernetes-version=1.15.2

NOTE: Kubernetes version ALWAYS needs to be given explicitly.

NOTE: If you are running minikube on a dedicated linux box add "--vm-driver=none"

You may also want to give additional minikube parameters depending on your machine capabilities and amount of ONAP components to be installed e.g.

"--cpus 4 --memory 8192 --disk-size 50g"

for cpus memory and disk size.

Kubectl and and Helm clients

Install binary versions of both clients and select correct versions for particular ONAP version.

ONAP Helm charts

  1. Clone ONAP Helm charts for specific release including submodules

    git clone --branch elalto --recurse-submodules "https://gerrit.onap.org/r/oom"


  2. Change to kubernetes dir

    cd oom/kubernetes


  3. Initialize Helm and configure Tiller

    Configure Tiller

    kubectl -n kube-system create serviceaccount tiller kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller helm init --service-account tiller kubectl -n kube-system rollout status deploy/tiller-deploy



  4. 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:8879

  5. Package ONAP Helm charts

    make