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.
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.
- Configure your infrastructure so that your single node meets the RKE prerequisites.
rke configto list the versions of Kubernetes supported by this version of rke.
- 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.
rke upto deploy the cluster to the single node
- RKE will have created several files. Keep these in a safe place.
- Deploying Kubernetes With RKE : https://rancher.com/docs/rke/latest/en/installation/#deploying-kubernetes-with-rke
- Creatingthe Cluster Configuration File : https://rancher.com/docs/rke/latest/en/installation/#creating-the-cluster-configuration-file