kubernetes default namespace 썸네일형 리스트형 kubernetes default namespace setting 하기 kubernetes default namespace setting 쿠버네티스 환경에서 운영하다보면 namespace가 지정되어 있지 않은경우 명령을 할때마다 -n=[네임스페이스명] 을 해야될 때가 있다. 쿠버네티스 명령할때 일일이 -n 옵션을 주지 않고 내가 사용하고자 하는 namespace를 세팅하는 방법은 아래 명령을 실행하면 된다. kubectl config set-context --current --namespace=[네임스페이스명] 원래 default namespace가 "default" 였는데 "harbor"로 바뀐것을 확인할 수 있다. 이제 kubectl 명령을 했을 때 기본 네임스페이스가 harbor 인 상태에서 실행된 것을 확인할 수 있다. 더보기 이전 1 다음