namespace는 아래와 같이 아주 간단하게 생성할수 있다.
kubectl create ns office
office 란 namespace에 mynginx deploy를 생성한다.
그리고, get pod을 하면 조회되지 않는것을 확인할수 있다.
왜냐하면, office라는 namespace 생성되었기 때문이다.
-n office를 추가하고 조회하면 정상적으로 조회됨을 확인할수 있다.
kubectl create deploy mynginx --image nginx -n office
kubectl get pod -n office