Using multiple namespaces allows you to split complex systems with numerous components into smaller distinct groups. This is useful in scenarios wherein you want to split and limit resources across different resources. kube-system: contains all infrastructure pods.Generic information can be stored here but it's often empty kube-public: a namespace that is world-readable.kube-node-lease: an administrative namespace where node lease information is stored - may be empty and/or non-existing.default: this is where all the Kubernetes resources are created by default.If you want to interact with all namespaces - for example, to list all Pods in your cluster you can pass the -all-namespaces flag.įour namespaces are defined when a cluster is created:.For example, kubectl -namespace=mystuff references objects in the mystuff namespace.If you want to use a different namespace, you can pass kubectl the -namespace flag.By default, the kubectl command-line tool interacts with the default namespace.Use namespaces to separate customer environments within one Kubernetes cluster. Resource limitation through quota can be implemented at a Namespace level also.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |