Create Pods In Each Namespace
Instead of specifying a namespace using the –namespace flag you can specify your namespace initially in your config file only.
and then use the command.
$ kubectl apply -f your_config_file.yaml
Kubernetes – Namespaces
Pre-requisite:- Kubernetes
Kubernetes Namespace is a mechanism that enables you to organize resources. It is like a virtual cluster inside the cluster. A namespace isolates the resources from the resources of other namespaces. For example, You need to have different names for deployments/services in a namespace but you can have the same name for deployment in two different namespaces.