Namespaces are Kubernetes objects which partition a single Kubernetes cluster into multiple virtual clusters.
Type of namespace:
- Default
- Kube-public
- Kube-system
Syntax:-
Kubectl create namespace <namespace-name>
Tasks By Trainer:-
1. Create a namespace and deploy the deployment in that namespace.
- Namespace name -> unnati
- Deployment name -> httpd
2. Create a namespace.yml file to create a namespace and deployment in that namespace.
- Namespace -> opensource
- Pod name -> nginx