#docker #kubernetes #container #orchestrator #microservice #infrastructure-as-code #devops #ci #cd

제목[Q&A] 컴퓨터 재시작 후 kubectl 관련 명령에서 오류가 나는 경우2019-12-11 05:42
작성자

minikube를 기반으로 kubernetes 예제들을 실행해본 후, 컴퓨터를 재시작하면 kubectl 관련 명령어들이 먹히지 않는 오류가 있었습니다.

정확히는 Server에 접속하지 못하는 상황인데, kubectl get pods와 같은 간단한 명령어들조차 다음의 오류를 내뿜으며 실행되지 않곤 했습니다.


Unable to connect to the server: dial tcp 192.168.51.231:8443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.


구글링을 해도 사람들마다 말이 제각각이어서 헷갈렸는데, 제 경우에는 해결 방법이 간단했습니다.

그저... minikube start 명령어를 다시 실행해 주면 됩니다.

.... : )

댓글