Playing with Rancher and Kubernetes Cluster

How manage and monitoring existing Kubernetes cluster with Rancher


Rancher was originally built to work with multiple orchestrators, and it included its own orchestrator called Cattle. With the rise of Kubernetes in the marketplace, Rancher 2.x exclusively deploys and manages Kubernetes clusters running anywhere, on any provider.

Let’s Play

Actually, with Rancher, we can also create their own Kubernetes cluster. But here I will create a blog on how to manage the Kubernetes cluster that I created earlier. And here I will use the quick start manual for the Rancher server

sudo apt update -y; sudo apt upgrade -y; sudo apt update -y
sudo apt install -y
sudo systemctl enable docker
sudo systemctl start docker
sudo systemctl status docker
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 --privileged rancher/rancher
cat /root/.kube/config
kind: Config
preferences: {}
- name: kubernetes-admin <<<<<<<<<<
kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user kubernetes-adminwget --no-check-certificatekubectl apply -f md6k8mj9hlvnjxjhxx7lh8k9g756g6ffnnvt75rhfqq4thgc4rlh8j.yaml

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store