Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is just a run-of-the-mill docker installation:

Code Block
languagebash
themeRDark
sudo apt-get remove docker docker-engine docker.io
sudo apt-get install     apt-transport-https     ca-certificates     curl     software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
sudo apt-get install docker-ce

...

We need a specific version of helm (so don't install the newest), we also need to create a service account (otherwise we are unable to install from the local helm repository), we install tiller and add the repository itself:

Code Block
languagebash
themeRDark
wget http://storage.googleapis.com/kubernetes-helm/helm-v2.9.1-linux-amd64.tar.gz
tar -zxvf helm-v2.9.1-linux-amd64.tar.gz
sudo mv linux-amd64/helm /usr/local/bin/helm
helm version
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
helm init
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec": {"serviceAccount":"tiller"}}}}'
helm serve &
helm repo add local http://127.0.0.1:8879

...

The installation is straightforward. Before running ONAP we must customize what projects should be enabled in the oom/kubernetes/onap/values.yaml file. As we want to run A&AI, we should have:

Code Block
languagetext
themeRDark
aai:
  enabled: true

and on all other ONAP projects enabled should be set to false (i.e. "enabled: false"). After we modify the values.yaml file we should be good to go:

Code Block
languagebash
themeRDark
git clone -b beijing http://gerrit.onap.org/r/oom
cd oom/kubernetes
make all
helm install local/onap -f onap/values.yaml --version 2.0.0 -n onap --namespace onapns

...

you should see kubernetes and ONAP A&AI pods running