Just curious about the intent for this default namespace.
What's the kube-public namespace for?
9.6k views Asked by Steven Barragán At
2
There are 2 answers
2
On
To complete the previous answer, these are the objects inside the namespace kube-public
:
$ kubectl get_all --namespace kube-public
NAME NAMESPACE
secret/default-token-jd2k2 kube-public
serviceaccount/default kube-public
rolebinding.rbac.authorization.k8s.io/system:controller:bootstrap-signer kube-public
role.rbac.authorization.k8s.io/system:controller:bootstrap-signer kube-public
That namespace exists in clusters created with kubeadm for now. It contains a single ConfigMap object, cluster-info, that aids discovery and security bootstrap (basically, contains the CA for the cluster and such). This object is readable without authentication.
If you are courious:
There are more details in this blog post and the design document: