K3s Installation - Lightweight Kubernetes Cluster Setup

Install and configure a lightweight Kubernetes cluster using K3s. Quick setup guide with example commands for K3s installation and configuration.

K3s

K3s Installation

To install a K3s cluster, use the following command:

curl https://get.k3s.io | INSTALL_K3S_VERSION="v1.18.13+k3s1" INSTALL_K3S_EXEC="server --write-kubeconfig-mode 0644 --tls-san foo.bar" sh -s -

Configuration

Configure your K3s cluster using the kubectl command-line tool. Ensure that your KUBECONFIG environment variable is properly set to point to the K3s configuration file.

Networking

K3s uses Flannel as the default CNI (Container Network Interface). You can customize the networking configuration as needed.

Storage

K3s supports various storage options, including local storage and cloud-based storage solutions. Choose the storage option that best suits your needs.