(01)Install single-node cluster
Linux
1curl -sfL https://get.k3s.io | sh -2sudo k3s kubectl get nodesLightweight Kubernetes — perfect for edge and small clusters
If you're on Kubernetes 1.27 or older
If you're on Kubernetes 1.28
Alternative — team standard for Local Kubernetes
What is this?
K3s is a tiny, production-ready Kubernetes distribution that installs in one command.
Where to create or edit the main configuration — paths below match the setup steps.
/etc/rancher/k3s/k3s.yamlLocation: K3s server node
Cluster kubeconfig — copy to ~/.kube/config
Step 01
1curl -sfL https://get.k3s.io | sh -2sudo k3s kubectl get nodesStep 02
1sudo cat /etc/rancher/k3s/k3s.yaml > ~/.kube/config2kubectl get pods -AStep 03
1kubectl get nodes2kubectl run test --image=nginx --restart=Never