kubctl listnamespaces 1

kubctl listnamespaces

kubectl get ns

Here is what the above code is Doing:
1. Create a namespace called “my-namespace”
2. Create a deployment called “my-deployment” in the “my-namespace” namespace
3. Create a service called “my-service” in the “my-namespace” namespace
4. List all the namespaces

Similar Posts