Info | ||
---|---|---|
| ||
Although the exciting instructions on this page are working for kubernetes, the cluster configuration part is still working in progress. Will be updated as soon as it becomes available. |
...
Quickstart Installation in ONAP on Kubernetes provides instruction of setting kubernestes through Rancher. The steps described on this page include using rancher to configure clustered kubernetes nodes .- keep this page, the parent and the linked pages all in sync
Table of Contents |
---|
Install Rancher
Follow the steps below to install and configure Rancher:
# | Purpose | Command and Example | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Add host name to /etc/hosts file 1 | sudo vi /etc/hosts
| ||||||||||
2 | Clone the OOM project from ONAP gerrit | git clone http://gerrit.onap.org/r/oom | ||||||||||
3 | Install Docker 1.12 2 | curl https://releases.rancher.com/install-docker/1.12.sh | sh
| ||||||||||
4 | Install/Start Rancher server 3 | Only on master node (if you are installing more than one Kubernetes nodes), Use port 8880 instead of 8080. docker run -d --restart=unless-stopped -p 8880:8080 rancher/server:v1.6.10
|
Notes:
- Adding all cluster nodes to /etc/hosts file on each node is optional
- Check out compartible versions among Rancher, Kubernetes and Docker
- There may be issues with the DNS pod in Rancher after a reboot or when running clustered hosts as described in ONAP bug OOM-236 (Rancher DNS pod non-functional after system reboot - only in cluster mode). A clean system is OK.
...
From here, follow the steps below to configure the Rancher:
# | Purpose | Script shots illustrated steps | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Create Rancher environment: |
| ||||||||||||||||||||
2 | Add host to INFRASTRUCTURE |
| ||||||||||||||||||||
3 | Confirm that the host process has completed | The end of adding the host operation is indicated by the CLI option shown under the KUBERNETES dropdown menu:
|
Install kubectl
kubectl is a command line interface for running commands against Kubernetes clusters.
Follow the steps below to install kubectrl:
# | Purpose | Command and Example | |||||
---|---|---|---|---|---|---|---|
1 | Download kubectl on the server | curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
| |||||
2 | Enable the kubectl command | chmod +x ./kubectl sudo mv ./kubectl /usr/local/bin/kubectl | |||||
3 | Generate Config from the Rancher UI |
| |||||
4 | Create the kube config on the server | mkdir ~/.kube vi ~/.kube/config Paste the generated config from rancher UI (from last step) to this file, then save the file. | |||||
5 | Validate the kube config | kubectl cluster-info |
Configure Kubernetes Cluster
...