what is a namespace?

Create a namespace:

kubectl create namespace dev
apiVersion: v1
kind: Namespace
metadata:
name: dev
kubectl apply -f namespace.yml

How to deploy in this namespace?

kubectl run dev-nginx --image=nginx -n dev
metadata:
namespace: dev
kubectl get pods -n dev

To view all the pods from all namespaces

kubectl get pods --all-namespaces

Engineer