k3s metrics-server problem #8788
Replies: 3 comments 7 replies
-
The The second error |
Beta Was this translation helpful? Give feedback.
-
Thanks @brandond. More details of k3s configure with the problem: K3s command with options:
registries.yaml:
/etc/hosts file in the host:
config.yaml:
Notice that I added "--tls-san <IP_address>" into k3s option. I expect with "--tls-san" option, it recognize the IP address. |
Beta Was this translation helpful? Give feedback.
-
Why are you starting k3s with I see that you've also disabled the metrics-server component. Can you confirm that you've disabled the same components on all the servers in the cluster? |
Beta Was this translation helpful? Give feedback.
-
The error messages when running "kubectl" command:
kubectl get pods -A
E1106 18:02:48.085259 8838 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1106 18:02:48.101169 8838 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1106 18:02:48.108929 8838 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1106 18:02:48.115010 8838 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
When checking metrics-server log:
kubectl logs metrics-server-c4478598d-xxpt4 -n kube-system
E1106 18:03:31.002407 11578 memcache.go:287] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1106 18:03:31.004905 11578 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
E1106 18:03:31.008612 11578 memcache.go:121] couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Error from server: Get "https://172.17.16.59:10250/containerLogs/kube-system/metrics-server-c4478598d-xxpt4/metrics-server": tls: failed to verify certificate: x509: certificate is valid for 127.0.0.1, not 172.17.16.59
Anyone know how to resolve the problem?
Beta Was this translation helpful? Give feedback.
All reactions