您可以在$/pki/admin.conf中找到该配置。(默认值:/var/lib/k0s/pki/admin.conf)
/etc/profile添加配置文件
export KUBECONFIG=/var/lib/k0s/pki/admin.conf
source /etc/profile
cp /var/lib/k0s/pki/admin.conf .kube/config
cp /etc/rancher/rke2/rke2.yaml .kube/config
C:\Users\admin\.kube\config