yay k3s
sudo k3s server --write-kubeconfig-mode 644
sudo k3s agent
k3s kubectl get po
export KUBECONFIG="/etc/rancher/k3s/k3s.yaml"
If you want to make it permanent, write this in .zshrc
. If you write it, you can use it immediately by writing source ~ / .zshrc
.
Rancher Docs: K3s - Lightweight Kubernetes
Recommended Posts