...

/

Deploying Objects to Namespaces

Deploying Objects to Namespaces

Learn about a couple of ways to ways to deploy objects to namespaces.

As previously mentioned, most objects are Namespaced, and Kubernetes deploys new objects to the default Namespace unless we specify otherwise.

How to deploy objects to namespaces

There are two ways to deploy objects to specific Namespaces:

  • Imperatively

  • Declaratively

To do it imperatively, add the -n or --namespace flag to commands. To do it declaratively, we specify the Namespace in the objects YAML manifest. ...