Steps described in this page are run by "ubuntu", a non-root user.
This page describes the steps of using rancher (rancher environment) to deploy Kubernetes node and config Kubernetes cluster nodes.
Deploy The First Kubernetes Node
This section, similar as Quickstart Installation in ONAP on Kubernetes, provides the instruction of deploying Kubernetes node through Rancher.
The first Kubernetes node in the Kubernetes cluster is to be deployed on the rancher server VM which also is configured with ranch client running.
Setup Rancher Server
Follow the steps below to install and configure Rancher:
# | Purpose | Command and Example |
---|---|---|
1 | Add host name to /etc/hosts fileAdding all cluster nodes to /etc/hosts file on each node | sudo vi /etc/hosts |
2 | Install/Start Rancher serverThere may be issues with the DNS pod in Rancher after a reboot or when running clustered hosts as described in ONAP bug: A clean system is OK. | Use port 8880 instead of 8080. docker run -d --restart=unless-stopped -p 8880:8080 rancher/server:v1.6.10 |
Configure Rancher Client
You can access the Rancher UI through http:<master host IP>:8880 ; it takes you to the apps/stacks page.
For example,
You can access Rancher from http://10.147.132.10:8880/; the page will be opened to http://10.147.132.10:8880/env/1a5/apps/stacks.
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: |
Configure Kubernetes Cluster Nodes
Repeat the following steps as many times as the number of nodes you are going to have in the Kubernetes cluster.
# | Purpose | Command and Example |
---|---|---|
1 | Add host name to /etc/hosts fileAdding all cluster nodes to /etc/hosts file on each node | sudo vi /etc/hosts |
2 | Add host to INFRASTRUCTURESee examples from step 2 of section "Configure Rancher Client" |
|
3 | Confirm that the Setup has Finished | Wait until all hosts in Rancher show green, indicating that setup is complete! |