Kubernetes 101 : Namespaces and labels
When we create a kubernetes object ( pod, deployment, ... ), it gets created in the default namespace.
To display the namespaces in the cluster, we use the below command - we can see the default namespace there -:
We can create a kubernetes object in a certain namespace, either by mentioning it in the YAML file of the object we want to create, or in the command line as below - creates and runs a debian pod -:
Comments