Info |
---|
Steps described in this page are run by "ubuntu", a non-root user. |
...
# | Purpose | Command and Example | |||||
---|---|---|---|---|---|---|---|
1 | Install Docker 1.12 | Check out compartible versions among Rancher, Kubernetes and Docker, curl https://releases.rancher.com/install-docker/1.12.sh | sh
| |||||
2 | Enable docker command for ubuntu useras recommend from docker installation | sudo usermod -aG docker ubuntu logout log back in and validate docker command is usable by entering "docker" |
...
# | Purpose | Command and Example | |||||
---|---|---|---|---|---|---|---|
1 | Download kubectl on the server | curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.8.6/bin/linux/amd64/kubectl
| |||||
2 | Enable the kubectl command | chmod +x kubectl sudo mv kubectl /usr/local/bin/kubectl vi ~/.bashrc
source ~/.bashrc | |||||
3 | Generate config from the Rancher UI | From the Rancher UI ( access the Rancher UI through http:<master host IP>:8880 as specified in Kubernetes Cluster by Rancher),
| |||||
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 | |||||
6 | Validate the nodes added | kubectl get nodes
|
Install Helm
Helm is used by OOM for package and configuration management. Hence, we are installing Helm (use 2.3.0 not current 2.6.0) on the server where we have mounted the OOM project.
...
# | Purpose | Command and Example | |||||
---|---|---|---|---|---|---|---|
1 | Download the Helm tar file | wget http://storage.googleapis.com/kubernetes-helm/helm-v2.3.0-linux-amd64.tar.gz
| |||||
2 | Untar the Helm tar file | tar -zxvf helm-v2.3.0-linux-amd64.tar.gz
| |||||
3 | Enable the Helm command | sudo mv linux-amd64/helm /usr/local/bin/helm | |||||
Tip of viewing helm command menu |
|