This is a repository containing technical procedure and configs to test a k3s installation (locally and in VM).
You should first check the requirements to install before launching the demo.
3 demos are available:
systemctl k3s status
journalctl -u k3s -e -f
kubectl get all --all-namespaces
# Kubeconfig
/etc/rancher/k3s/k3s.yaml
# K3S Installation
/var/lib/rancher/k3s
kubectl get nodes
multipass exec k3s-server -- /bin/bash -c "sudo cat /var/lib/rancher/k3s/server/cred/node-passwd"
For local multipass:
multipass info --all
Inside the VM:
# Get process comsumption
ps aux | grep k3s
# Get the top 10 CPU consuming process
ps aux | sort -n -k 3 | tail -10
# Get the top 10 memory consuming process
ps aux | sort -n -k 4 | tail -10