Docker_k8s

[k8s] kubectl 명령 - 오류 : The connection to the server localhost:8080 was refused - did you specify the right host or port?

kjun.kr 2022. 12. 23. 14:10
728x90

kubectl get nodes 명령시 아래와 같은 에러가 발생되어서 검색을 열심히 했습니다.

The connection to the server localhost:8080 was refused - did you specify the right host or port?

검색을 해보다가 혹시나 해서 sudo 를 붙여봤는데 에러가 사라졌습니다.;;

sudo kubectl get nodes

* 에러 메세지가 왜 저런건지;;;

728x90