kubectl error

bo-yoon·2021년 6월 2일

환경: mac OS

1. Unable to connect to the server: dial tcp

➜  ~ kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e588sadjflafsadc13713adsadffads1e69192", GitTreeState:"clean", BuildDate:"2021-05-12T14:18:45Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"darwin/amd64"}
Unable to connect to the server: dial tcp 192.168.64.12:8443: i/o timeout

라고 뜨는 경우

해결책

minikube 설치 후 minikube start 하면 자동으로 해결

2. Unable to connect to the server: net/http: TLS handshake timeout

➜  flannel kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5fasdfasdfafadsa46f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-13T13:23:52Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"darwin/amd64"}
Unable to connect to the server: net/http: TLS handshake timeout

해결책

리소스 부족 = 리소스 늘려주기

profile
개발 로그 🍎 🍎 🍎

0개의 댓글