Versions Compared

Key

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

...

The OOM (ONAP Operation Manager) project has pushed Kubernetes based deployment code to the oom repository.  This page details on getting ONAP running on Kubernetes for various environments.

Note: currently there is no DCAE containers running yet therefore DMaaP, VES collectors and APPC actions as the result of policy actions (closed loop) - will not function yet.

Undercloud Installation

We need a kubernetes installation with the proper architecture components running.  This architecture can be provided by vendors like Redhat or Rancher

...

curl -O https://storage.googleapis.com/kubernetes-release/release/v1.6.1/bin/darwin/amd64/kubectl

chmod +x kubectl

skipped (mv kubectl /usr/local/bin/kubectl) - already there

ls /usr/local/bin/kubectl 

git clone https://github.com/coreos/coreos-kubernetes.git

cd coreos-kubernetes/single-node/

vagrant box update

sudo ln -sf /usr/local/bin/openssl /opt/vagrant/embedded/bin/openssl

vagrant up

Wait at least 5 min (Yves is good)

export KUBECONFIG="${KUBECONFIG}:$(pwd)/kubeconfig"

kubectl config use-context vagrant-single

kubectl cluster-info

kubectl config set-cluster vagrant-single-cluster --server=https://172.17.4.99:443 --certificate-authority=${PWD}/ssl/ca.pem

kubectl get nodes

obrienbiometrics:single-node michaelobrien$ export KUBECONFIG="${KUBECONFIG}:$(pwd)/kubeconfig"

obrienbiometrics:single-node michaelobrien$ kubectl config use-context vagrant-single

Switched to context "vagrant-single".

$ kubectl get nodes

NAME          STATUS    AGE       VERSION

172.17.4.99   Ready     4h        v1.5.4+coreos.0


$ kubectl get pods --all-namespaces

NAMESPACE     NAME                                    READY     STATUS    RESTARTS   AGE

kube-system   heapster-v1.2.0-4088228293-3k7j1        2/2       Running   2          4h

kube-system   kube-apiserver-172.17.4.99              1/1       Running   1          4h

kube-system   kube-controller-manager-172.17.4.99     1/1       Running   1          4h

kube-system   kube-dns-782804071-jg3nl                4/4       Running   4          4h

kube-system   kube-dns-autoscaler-2715466192-k45qg    1/1       Running   1          4h

kube-system   kube-proxy-172.17.4.99                  1/1       Running   1          4h

kube-system   kube-scheduler-172.17.4.99              1/1       Running   1          4h

kube-system   kubernetes-dashboard-3543765157-qtnnj   1/1       Running   1          4h


$ kubectl get service --all-namespaces

NAMESPACE     NAME                   CLUSTER-IP   EXTERNAL-IP   PORT(S)         AGE

default       kubernetes             10.3.0.1     <none>        443/TCP         4h

kube-system   heapster               10.3.0.95    <none>        80/TCP          4h

kube-system   kube-dns               10.3.0.10    <none>        53/UDP,53/TCP   4h

kube-system   kubernetes-dashboard   10.3.0.66    <none>        80/TCP          4h


$ kubectl cluster-info

Kubernetes master is running at https://172.17.4.99:443

Heapster is running at https://172.17.4.99:443/api/v1/proxy/namespaces/kube-system/services/heapster

KubeDNS is running at https://172.17.4.99:443/api/v1/proxy/namespaces/kube-system/services/kube-dns

kubernetes-dashboard is running at https://172.17.4.99:443/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard


git clone ssh://michaelobrien@gerrit.onap.org:29418/oom

cd oom/kubernetes/oneclick/

./createAll.bash -n onap

kubectl cluster-info

...