Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the kube-public namespace for?

Just curious about the intent for this default namespace.

like image 574
Steven Barragán Avatar asked Aug 29 '17 01:08

Steven Barragán


People also ask

Can I delete kube-system namespace?

Try kubectl get deployment --namespace=kube-system to see if you have a deployment in the kube-system namespace. If so, deleting it should also delete the replica set and the pods that you created.

Should I use Kubernetes namespaces?

You should not use Namespaces as a way to disambiguate versions of your Kubernetes resources. Support for versioning is present in the containers and container registries as well as in Kubernetes Deployment resource.

What happens when you delete namespace in Kubernetes?

Force Delete a Kubernetes Namespace. Sometimes a user deletes a namespace before all its resources have been removed. This action may cause the namespace to become permanently stuck in the Terminating status. Kubernetes does not allow creating another namespace with the same name until the deletion process is finished.

What are Kubernetes namespaces useful for Choose all that are correct?

What are Kubernetes namespaces useful for? Choose all that are correct (2 correct answers). Namespaces let you implement resource quotas across your cluster. Namespaces allow you to use object names that would otherwise be duplicates of one another.


1 Answers

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:

$ kubectl get configmap -n kube-public cluster-info -o yaml 

There are more details in this blog post and the design document:

NEW: kube-public namespace

[...] To create a config map that everyone can see, we introduce a new kube-public namespace. This namespace, by convention, is readable by all users (including those not authenticated). [...]

In the initial implementation the kube-public namespace (and the cluster-info config map) will be created by kubeadm. That means that these won't exist for clusters that aren't bootstrapped with kubeadm. [...]

like image 166
Janos Lenart Avatar answered Oct 05 '22 07:10

Janos Lenart