Difficulty: Beginner
Estimated Time: 10 minutes

In this scenario you will learn how to deploy a Kubernetes cluster using Rancher 2.0. Rancher is enterprise management for Kubernetes. Follow the steps to go deploy Rancher and configure a Kubernetes cluster.

Rancher is open source software that combines everything an organization needs to adopt and run containers in production.

Interested in running Rancher locally? Start with docker run -d -p 443:443 rancher/rancher:v2.0.2

Learn more at https://rancher.com/

Deploying Kubernetes using Rancher

Step 1 of 4

Start Rancher

With Rancher, you can initialise multiple clusters with one single central place to manage them. The Rancher control plane is deployed as a Docker Container.


To start Rancher, run the command:

docker run -d -p 443:443 --name=rancher rancher/rancher:v2.0.2

Once started, you can view the Rancher dashboard at https://[[HOST_SUBDOMAIN]]-443-[[KATACODA_HOST]].environments.katacoda.com

Rancher may take one or two minutes to start. You can view the boot process with docker logs rancher

Create User

Once started, the first step is to configure a password for the login admin of the cluster. For a random password, have Rancher generate the password for you.

Confirm Server URL

Once the password is created, confirm the URL for the cluster.

Rancher is now running!! In the next step, in the next step you'll use this cluster to configure Kubernetes.