DEV Community

loading...
Cover image for Rancher 101 - Deploying Kubernetes With RKE

Rancher 101 - Deploying Kubernetes With RKE

mrofisr profile image Muhammad Abdur Rofi ・2 min read

Deploying Kubernetes With RKE

Deploying an RKE cluster is as easy as running rke up with the config file that you generated with rke config. When you do this, RKE will reach out to your systems over SSH and build them into a Kubernetes cluster.

Depending on how many nodes you’re configuring, it can take anywhere from 3 to 15 minutes to build out the cluster. If the process is interrupted along the way, run rke up again to continue.

Use rke up to Deploy a Single Node Cluster

You’ll use the configuration file in Lab 2to deploy a single node Kubernetes Cluster. If you haven’t already, provision a single virtual machine from a cloud provider or internal on-premises lab environment. Don’t use an ephemeral environment like an EC2 spot instance as you will need this environment for future labs.

  1. Configure your infrastructure so that your single node meets the RKE prerequisites.
  2. Use rke config to list the versions of Kubernetes supported by this version of rke.
  3. In Lab 2 you should have a selected one that is not the most recent. In Lab 4, we’ll upgrade the cluster to the latest version.
  4. Use rke up to deploy the cluster to the single node

alt text

  1. RKE will have created several files. Keep these in a safe place.

Testing That It Works

1.If you haven’t already setup kubectl.
2.You can now use the kube config file with kubectl to test access to the cluster.

References

Discussion (0)

pic
Editor guide