Difference between revisions of "Kubernetes namespaces"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 +
Kubernetes starts with four initial namespaces:
 +
* <code>default</code> The default namespace for objects with no other namespace
 +
* <code>kube-system</code> The namespace for objects created by the Kubernetes system
 +
* <code>kube-public</code> This namespace is created automatically and is readable by all users (including those not authenticated). This namespace is mostly reserved for cluster usage, in case that some resources should be visible and readable publicly throughout the whole cluster. The public aspect of this namespace is only a convention, not a requirement.
 +
* <code>kube-node-lease</code> This namespace holds Lease objects associated with each node. Node leases allow the kubelet to send heartbeats so that the control plane can detect node failure.
 +
 +
 
* https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
 
* https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
  

Revision as of 06:50, 20 July 2022

Kubernetes starts with four initial namespaces:

  • default The default namespace for objects with no other namespace
  • kube-system The namespace for objects created by the Kubernetes system
  • kube-public This namespace is created automatically and is readable by all users (including those not authenticated). This namespace is mostly reserved for cluster usage, in case that some resources should be visible and readable publicly throughout the whole cluster. The public aspect of this namespace is only a convention, not a requirement.
  • kube-node-lease This namespace holds Lease objects associated with each node. Node leases allow the kubelet to send heartbeats so that the control plane can detect node failure.



kubectl create namespace MY_TEST_NAMESPACE 
namespace/MY_TEST_NAMESPACE created
kubectl create ns MY_TEST_NAMESPACE
namespace/MY_TEST_NAMESPACE created

Activities

Related terms

EKS

See also

Advertising: