Frequently asked questions
How is k0s pronounced?
kay-zero-ess
How do I run a single node cluster?
k0s server --enable-worker
How do I connect to the cluster?
You find the config in ${DATADIR}/pki/admin.conf
(default: /var/lib/k0s/pki/admin.conf
). Copy this file, and change the localhost
entry to the public ip of the controller. Use the modified config to connect with kubectl:
export KUBECONFIG=/path/to/admin.conf
kubectl ...
Why doesn’t kubectl get nodes
list the k0s server?
As a default, the control plane does not run kubelet at all, and will not accept any workloads, so the server will not show up on the node list in kubectl. If you want your server to accept workloads and run pods, you do so with: k0s server --enable-worker
(recommended only as test/dev/POC environments).
当前内容版权归 k0sproject 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 k0sproject .