Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority

Because you use k3s, you have to copy /etc/rancher/k3s/k3s.yaml instead of admin.yaml
cp -i /etc/rancher/k3s/k3s.yaml ~/.kube/config