Kubernetes · kubectl ·
[Error] kubectl commands error - the server is currently unable to handle the request
The server is currently unable to handle the request 오류 해결법 #
kubectl 명령어를 입력하면 다음 오류 메시지가 발생하는 경우가 있습니다.
1couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request 2 3or 4 5Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes.metrics.k8s.io)1E0804 15:08:38.034678 2567 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request 2E0804 15:08:38.386072 2567 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request 3E0804 15:08:38.452142 2567 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request 4E0804 15:08:38.614993 2567 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
이 문제는 다음 deploy 수정하면 해결 #
1kubectl edit deploy -n kube-system metrics-server
2
3dnsPolicy: ClusterFirst
4hostNetwork: true << 추가
5nodeSelector:
6 kubernetes.io/os: linuxAdvertisement