Skip to content
Cloudbricks.dev logo

How to Install and Configure K3S

Kishore 1 min read

K3s is a CNCF sandbox project that delivers a lightweight yet powerful certified Kubernetes distribution. K3S is a lightweight Kubernetes, easy to install, Simple but powerful “batteries-included” features have been added, such as:

  • local storage provider
  • service load balancer
  • helm controller
  • Traefik ingress controller

Install K3S on Rocky Linux 8

Prerequisites

Operating Systems:

  • If you are using RHEL/CentOS/Fedora, follow these steps.

Hardware:

SpecMinumumRecommended
CPU1 Core2 Cores
Memory512 MB1 GB

Installation:

K3s provides an installation script that is a convenient way to install it as a service on systemd based systems. This script is available at https://get.k3s.io.

Since i am using this installation method, will just run:

curl -sfL https://get.k3s.io | sh -
  1. Login to Dev_Machine using root credentials and run the command img placeholder
  2. after few minutes the script will install the required packages and completes the installation img placeholder
  3. change the permissions of k3s config file
chmod 644 /etc/rancher/k3s/k3s.yaml

img placeholder 4. check the k3s service status using systemctl img placeholder 5. check the status of nodes img placeholder 5. check the kubectl verstion and status of Pods img placeholder

Note

This is not complete Installation, configuration and Administration of Kubernetes. This just allows me to run AWX Operator

Watch the video on How to setup K3S kubernetes cluster