설치했는데 명령 을 사용하면 모두 kubeadm
버전 입니다 . 저는 Ubuntu 22.04LTS 시스템을 사용합니다. 내 로컬 머신에서 Kubernetes를 테스트하고 사용하고 싶습니다. 하지만 다음 명령을 시도할 때마다 다음 오류 메시지가 나타나는 이유를 모르겠습니다 .kubelet
kubectl
sudo apt install
1.26.0
kubectl
kubelctl get pods/nodes/etc
kubectl get pods
E1212 08:13:11.758898 4321 memcache.go:238] couldn't get current server API group list: Get "https://192.168.1.2:6443/api?timeout=32s": dial tcp 192.168.1.2:6443: connect: connection refused
E1212 08:13:11.759479 4321 memcache.go:238] couldn't get current server API group list: Get "https://192.168.1.2:6443/api?timeout=32s": dial tcp 192.168.1.2:6443: connect: connection refused
E1212 08:13:11.761197 4321 memcache.go:238] couldn't get current server API group list: Get "https://192.168.1.2:6443/api?timeout=32s": dial tcp 192.168.1.2:6443: connect: connection refused
E1212 08:13:11.762636 4321 memcache.go:238] couldn't get current server API group list: Get "https://192.168.1.2:6443/api?timeout=32s": dial tcp 192.168.1.2:6443: connect: connection refused
E1212 08:13:11.764083 4321 memcache.go:238] couldn't get current server API group list: Get "https://192.168.1.2:6443/api?timeout=32s": dial tcp 192.168.1.2:6443: connect: connection refused
The connection to the server 192.168.1.2:6443 was refused - did you specify the right host or port?
왜 이 오류 메시지가 나타나는지 모르겠습니다.
답변1
런타임이 docker이고 minikube를 사용하는 경우 다음 실행을 고려해야 합니다.
minikube delete
open -a docker
minikube start --driver=docker
kubectl get pods
이것은 나에게 효과적입니다.