Post

Simple K3S Deployment

Simple K3s Deployment Tutorial

This guide will walk you through deploying a K3s Kubernetes cluster using my setup and configuration.


Prerequisites

Before proceeding, you need the following setup:

  • 3 master nodes
  • 3 agent nodes
  • 1 admin VM to run the deployment script.

I recommend reviewing the prerequisites detailed in my blog post:
Prerequisites for My Kubernetes RKE2/K3s Cluster.


Configuration

Here are the configurations you can use:

  1. My Configuration:
    GitHub Repository: My K3s Cluster

  2. Original Configuration from JimsGarage:
    GitHub Repository: JimsGarage K3s Deployment


Setting Up the Admin VM

Follow these steps to prepare the admin VM:

  1. Add SSH Keys:
    Place both the public and private SSH keys in the /home/usr/ directory.

  2. Prepare the K3s Script:
    Copy the K3s deployment script to the admin VM and ensure it has execute permissions. You can set permissions using the command: ```bash chmod +x k3s.sh

  3. Run the Deployment Script: Execute the script on the admin VM. This will set up the cluster and deploy Nginx.

  4. Verify the Setup: After running the script, access the external IP of your Nginx service. Open the IP in your browser. If the Nginx welcome page appears, the deployment was successful.

What’s Next

In the next post, I will deploy Rancher on this cluster using Helm. Stay tuned!

This post is licensed under CC BY 4.0 by the author.