...
Jira |
---|
server | ONAP JIRA |
---|
serverId | 425b2b0a-557c-3c0c-b515-579789cceedb |
---|
key | OOM-1 |
---|
|
Undercloud Installation
We need a kubernetes installation with the proper architecture components running. This architecture can be provided by vendors like Redhat or Rancher
https://kubernetes.io/docs/concepts/overview/components/
Ubuntu 16.04 Install Session
...
Redhat provides 2 docker containers for the scheduler and nbi components and spins up 2 (# is scalable) pod containers for use by onap.
[root@obrien-mbp oneclick]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ee02bbab2037 rhel7/kubernetes-scheduler "/usr/bin/kube-schedu" 40 hours ago Up 40 hours k8s_kube-scheduler.4e069b78_kube-scheduler-127.0.0.1_default_78147ee23cd674839c926daaa58595e5_f4ada53e f5031b2923ca rhel7/kubernetes-apiserver "/usr/bin/kube-apiser" 40 hours ago Up 40 hours k8s_kube-apiserver.41e368d_kube-apiserver-127.0.0.1_default_ab6617fd8366917b3d6b8c7bb6cbcfcf_8d671f6c 4c5e96ea1074 registry.access.redhat.com/rhel7/pod-infrastructure:latest "/pod" 40 hours ago Up 40 hours k8s_POD.ae8ee9ac_kube-scheduler-127.0.0.1_default_78147ee23cd674839c926daaa58595e5_0ce93fa0 3316c73036fc registry.access.redhat.com/rhel7/pod-infrastructure:latest "/pod" 40 hours ago Up 40 hours k8s_POD.ae8ee9ac_kube-apiserver-127.0.0.1_default_ab6617fd8366917b3d6b8c7bb6cbcfcf_8c0dda0f |
---|
![](/download/attachments/8227431/Screenshot%202017-06-28%2019.08.09.png?version=1&modificationDate=1498744161000&api=v2)
Kubernetes setup
Uninstall docker-se (we installed earlier) Follow https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html-single/getting_started_with_kubernetes/ subscription-manager repos --enable=rhel-7-server-optional-rpms sudo yum remove docker-ce sudo yum remove docker-ce-selinux yum install docker kubernetes-client kubernetes-node etcd docker ps systemctl disable firewalld systemctl stop firewalld yum install docker-distribution systemctl start docker-distribution systemctl enable docker-distribution systemctl is-active docker-distribution docker images systemctl start docker docker ps docker images docker pull registry.access.redhat.com/rhel7/kubernetes-apiserver docker pull registry.access.redhat.com/rhel7/kubernetes-controller-mgr docker pull registry.access.redhat.com/rhel7/kubernetes-scheduler mkdir /etc/kubernetes/manifests vi /etc/kubernetes/manifests/apiserver-pod.json vi /etc/kubernetes/manifests/controller-mgr-pod.json vi /etc/kubernetes/manifests/scheduler-pod.json vi /etc/kubernetes/kubelet vi kubestart.sh chmod 777 kubestart.sh [root@obrien-mbp opt]# ./kubestart.sh Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service. active Created symlink from /etc/systemd/system/multi-user.target.wants/etcd.service to /usr/lib/systemd/system/etcd.service. active Created symlink from /etc/systemd/system/multi-user.target.wants/kube-proxy.service to /usr/lib/systemd/system/kube-proxy.service. active Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /usr/lib/systemd/system/kubelet.service. active ? docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/docker.service.d ??flannel.conf Active: active (running) since Tue 2017-06-27 14:26:09 PDT; 196ms ago Docs: http://docs.docker.com Main PID: 90732 (dockerd-current) Memory: 14.6M CGroup: /system.slice/docker.service ??90732 /usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --authorization-plugin=rhel-p... ??90740 /usr/bin/docker-containerd-current -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim docker-containerd-shim --metrics-interval=0 -... Jun 27 14:26:08 obrien-mbp.onap.org dockerd-current[90732]: time="2017-06-27T14:26:08.923309259-07:00" level=info msg="[graphdriver] using prior storage driver \"overlay\"" Jun 27 14:26:08 obrien-mbp.onap.org dockerd-current[90732]: time="2017-06-27T14:26:08.932489041-07:00" level=info msg="Graph migration to content-addressability... seconds" Jun 27 14:26:08 obrien-mbp.onap.org dockerd-current[90732]: time="2017-06-27T14:26:08.933459958-07:00" level=info msg="Loading containers: start." Jun 27 14:26:08 obrien-mbp.onap.org dockerd-current[90732]: .time="2017-06-27T14:26:08.944192986-07:00" level=info msg="Firewalld running: false" Jun 27 14:26:09 obrien-mbp.onap.org dockerd-current[90732]: time="2017-06-27T14:26:09.063447350-07:00" level=info msg="Default bridge (docker0) is assigned with... address" Jun 27 14:26:09 obrien-mbp.onap.org dockerd-current[90732]: time="2017-06-27T14:26:09.106280840-07:00" level=info msg="Loading containers: done." Jun 27 14:26:09 obrien-mbp.onap.org dockerd-current[90732]: time="2017-06-27T14:26:09.106331336-07:00" level=info msg="Daemon has completed initialization" Jun 27 14:26:09 obrien-mbp.onap.org dockerd-current[90732]: time="2017-06-27T14:26:09.106343838-07:00" level=info msg="Docker daemon" commit="1398f24/1.12.6" gr...on=1.12.6 Jun 27 14:26:09 obrien-mbp.onap.org dockerd-current[90732]: time="2017-06-27T14:26:09.116502253-07:00" level=info msg="API listen on /var/run/docker.sock" Jun 27 14:26:09 obrien-mbp.onap.org systemd[1]: Started Docker Application Container Engine. Hint: Some lines were ellipsized, use -l to show in full. ? kube-proxy.service - Kubernetes Kube-Proxy Server Loaded: loaded (/usr/lib/systemd/system/kube-proxy.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2017-06-27 14:26:09 PDT; 165ms ago Docs: https://github.com/GoogleCloudPlatform/kubernetes Main PID: 90864 (kube-proxy) Memory: 14.5M CGroup: /system.slice/kube-proxy.service ??90864 /usr/bin/kube-proxy --logtostderr=true --v=0 --master=http://127.0.0.1:8080 Jun 27 14:26:09 obrien-mbp.onap.org systemd[1]: Started Kubernetes Kube-Proxy Server. Jun 27 14:26:09 obrien-mbp.onap.org systemd[1]: Starting Kubernetes Kube-Proxy Server... ? kubelet.service - Kubernetes Kubelet Server Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2017-06-27 14:26:09 PDT; 151ms ago Docs: https://github.com/GoogleCloudPlatform/kubernetes Main PID: 90917 (kubelet) Memory: 13.9M CGroup: /system.slice/kubelet.service ??90917 /usr/bin/kubelet --logtostderr=true --v=0 --api-servers=http://127.0.0.1:8080 --address=127.0.0.1 --hostname-override=127.0.0.1 --allow-privileged=fal... Jun 27 14:26:09 obrien-mbp.onap.org systemd[1]: Started Kubernetes Kubelet Server. Jun 27 14:26:09 obrien-mbp.onap.org systemd[1]: Starting Kubernetes Kubelet Server... Jun 27 14:26:09 obrien-mbp.onap.org kubelet[90917]: Flag --api-servers has been deprecated, Use --kubeconfig instead. Will be removed in a future version. Jun 27 14:26:09 obrien-mbp.onap.org kubelet[90917]: Flag --config has been deprecated, Use --pod-manifest-path instead. Will be removed in a future version. Jun 27 14:26:09 obrien-mbp.onap.org kubelet[90917]: I0627 14:26:09.697783 90917 feature_gate.go:181] feature gates: map[] Jun 27 14:26:09 obrien-mbp.onap.org kubelet[90917]: W0627 14:26:09.698143 90917 server.go:605] Could not load kubeconfig file /var/lib/kubelet/kubeconfig: sta... instead. Jun 27 14:26:09 obrien-mbp.onap.org kubelet[90917]: I0627 14:26:09.698654 90917 docker.go:356] Connecting to docker on unix:///var/run/docker.sock Jun 27 14:26:09 obrien-mbp.onap.org kubelet[90917]: I0627 14:26:09.698667 90917 docker.go:376] Start docker client with request timeout=2m0s Jun 27 14:26:09 obrien-mbp.onap.org kubelet[90917]: E0627 14:26:09.702077 90917 cni.go:163] error updating cni config: No networks found in /etc/cni/net.d Jun 27 14:26:09 obrien-mbp.onap.org kubelet[90917]: I0627 14:26:09.711775 90917 manager.go:143] cAdvisor running in container: "/system.slice/kubelet.service" Hint: Some lines were ellipsized, use -l to show in full. [root@obrien-mbp opt]# ss -tulnp | grep -E "(kube)|(etcd)" tcp LISTEN 0 128 127.0.0.1:2379 *:* users:(("etcd",pid=90567,fd=6)) tcp LISTEN 0 128 127.0.0.1:2380 *:* users:(("etcd",pid=90567,fd=5)) tcp LISTEN 0 128 127.0.0.1:10255 *:* users:(("kubelet",pid=90917,fd=9)) tcp LISTEN 0 128 127.0.0.1:10248 *:* users:(("kubelet",pid=90917,fd=8)) tcp LISTEN 0 128 127.0.0.1:10249 *:* users:(("kube-proxy",pid=90864,fd=9)) tcp LISTEN 0 128 127.0.0.1:10250 *:* users:(("kubelet",pid=90917,fd=14)) tcp LISTEN 0 128 :::10251 :::* users:(("kube-scheduler",pid=91175,fd=8)) tcp LISTEN 0 128 :::6443 :::* users:(("kube-apiserver",pid=91126,fd=42)) tcp LISTEN 0 128 :::8080 :::* users:(("kube-apiserver",pid=91126,fd=43)) tcp LISTEN 0 128 :::4194 :::* users:(("kubelet",pid=90917,fd=13)) [root@obrien-mbp opt]# curl -s -L http://localhost:2379/version {"etcdserver":"3.1.7","etcdcluster":"3.1.0"}[root@obrien-mbp opt]# |
---|
...