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:
My Configuration:
GitHub Repository: My K3s ClusterOriginal Configuration from JimsGarage:
GitHub Repository: JimsGarage K3s Deployment
Setting Up the Admin VM
Follow these steps to prepare the admin VM:
Add SSH Keys:
Place both the public and private SSH keys in the/home/usr/
directory.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.shRun the Deployment Script: Execute the script on the admin VM. This will set up the cluster and deploy Nginx.
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!