Info |
---|
Steps described in this page are run by "ubuntu", a non-root user. |
...
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.
...
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! |