Installed K3S in Ubuntu but I need to sudo
for kubectl
command. Not ideal.
Turns out there’s an environment variable to configure the access mode of k3s.yaml
Re-install using the command below and I can manage my cluster without using sudo
curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644