Resources like Istio, pipeline, Prometheus, Grafana are integrated with Rancher.
Getting start with Rancher using Docker
$ docker pull rancher/rancher
$ docker run -d --restart=unless-stopped -p 61090:80 -p 61091:443 \
-v /software/bea/rancher:/var/lib/rancher --privileged rancher/rancher:latest
access the Rancher console by hitting - https:localhost:61091/
follow the welcome instructions on the screen and it will land up to your Global screen of clusters.once your setup is complete, start adding any of your k8s-cluster.
in this example, I am going to add my vanilla k8s-cluster which is running on-prem.
navigate to Add-cluster > other cluster > give a name to your cluster
rancher will generate commands for you to import your cluster, which you need to run in your cluster CLI as below
which will deploy required resources
$ kubectl create clusterrolebinding cluster-admin-binding \--clusterrole cluster-admin --user [USER_ACCOUNT]$ kubectl apply -f https://localhost:61091/v3/import/s8dkk7demo6fp2f6qffhmlkr.yaml# if you get a certificate related error try running on insecure channel$ curl --insecure -sfL https://localhost:61091/v3/import/s8dkk7demo6fp2f6qffhmlkr.yaml | \kubectl apply -f# following resources will gets createdclusterrole.rbac.authorization.k8s.io/proxy-clusterrole-kubeapiserver createdclusterrolebinding.rbac.authorization.k8s.io/proxy-role-binding-kubernetes-master created namespace/cattle-system created serviceaccount/cattle created clusterrolebinding.rbac.authorization.k8s.io/cattle-admin-binding created secret/cattle-credentials-4c43de3 created clusterrole.rbac.authorization.k8s.io/cattle-admin created deployment.apps/cattle-cluster-agent created
you will be able to see your cluster added into rancher now