Namespaces are Kubernetes objects which partition a single Kubernetes cluster into multiple virtual clusters.

Type of namespace:

  1. Default
  2. Kube-public
  3. Kube-system

Syntax:-

   Kubectl create namespace <namespace-name>

Tasks By Trainer:-

1. Create a namespace and deploy the deployment in that namespace.

  1. Namespace name -> unnati
  2. Deployment name -> httpd

2. Create a namespace.yml file to create a namespace and deployment in that namespace.

  1. Namespace -> opensource
  2. Pod name -> nginx