IBM FlashSystem

IBM FlashSystem

Find answers and share expertise on IBM FlashSystem

 View Only

Setting Up a Rancher Kubernetes Engine (RKE) Cluster - Part 1

By Chebrolu Harika posted Thu August 22, 2024 12:08 AM

  

This blog provides step-by-step instructions to set up a Rancher Kubernetes Engine (RKE) cluster, ensuring a seamless deployment and configuration process.

Prerequisites

- Minimum of 3 worker nodes with RHEL9.2 or later

- Access to all the Kubernetes nodes from our workstation(master node).

- Ensure you have sudo privileges on all the nodes.

 

Step 1: Install `kubectl`

Install `kubectl` (using Homebrew):

```sh

brew install kubectl

```

Verify the installation:

```sh

kubectl version

```

Expected output:

```

Client Version: v1.30.3

Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3

```

 

Step 2: Install RKE

Install RKE (using Homebrew):

```sh

brew install rke

```

Verify the installation:

```sh

rke --version

```

Expected output:

```

rke version v1.5.10

```

 

Step 3: Configure SSH Key-Based Authentication

Generate an SSH key pair in master node:

```sh

ssh-keygen -t rsa

```

Navigate to the `.ssh` directory:

```sh

cd ~/.ssh

```

Copy the public key to all Kubernetes worker nodes to enable passwordless authentication:

```sh

ssh-copy-id root@10.70.44.47

```

Repeat the above step for all other nodes.

Lets continue the remaining steps in part-2 of this blog

0 comments
6 views

Permalink