Kubernetes is an open-source container-orchestration system for automating application deployment, scaling, and management. k3s is a lightweight Kubernetes distribution designed for resource-constrained environments such as edge computing, CI/CD, and IoT.
This tutorial will guide you through the process of deploying a Kubernetes cluster with k3s.
curl -sfL https://get.k3s.io | sh -
The k3s server will start running immediately after installation.
To check if the server is running:
sudo systemctl status k3s
sudo cat /var/lib/rancher/k3s/server/node-token
curl -sfL https://get.k3s.io | K3S_TOKEN=<TOKEN> sh -
kubectl get nodes
kubectl apply -f <PATH_TO_YAML_FILE>
kubectl get pods
You have successfully deployed a Kubernetes cluster with k3s and deployed an application to it. With k3s, you can easily manage your containerized applications in a lightweight and resource-efficient way.