-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
k3s kubectl top pods errors #1554
Comments
Have you tried using the built-in containerd instead of docker? Is there any particular reason you're using docker instead? |
@brandond |
@brandond I've already tried containerd instead of docker. kubectl top pod is that OK. |
I'm having a same issue, same error logs. |
Steps to reproduce:
Results:
More Info: Cannot reproduce it in Docker CE 17.03, so it's related to docker version. Expected: K3s should compatible with latest Docker version 19.03.6 . |
Verified metrics is reported using the fix #1627
And on Docker version 18.03, 19.06, 19.03, Ubuntu 18.04.3 LTS
|
INSTALL:
HA externaldb : etcd
metrics-server: rancher/metrics-server:v0.3.6
container logs:
[root@master1 ~]# kubectl logs -n kube-system metrics-server-6d684c7b5-5gdm4
I0312 12:19:35.789576 1 serving.go:312] Generated self-signed cert (apiserver.local.config/certificates/apiserver.crt, apiserver.local.config/certificates/apiserver.key)
I0312 12:19:36.811159 1 secure_serving.go:116] Serving securely on [::]:443
I0312 13:17:03.151023 1 log.go:172] http: TLS handshake error from 10.50.188.192:46578: remote error: tls: unknown certificate authority
I0312 13:17:17.151274 1 log.go:172] http: TLS handshake error from 172.21.1.83:15178: remote error: tls: unknown certificate authority
I0312 13:17:22.367831 1 log.go:172] http: TLS handshake error from 10.50.166.128:58558: remote error: tls: unknown certificate authority
E0314 05:14:18.244733 1 reflector.go:270] k8s.io/client-go/informers/factory.go:133: Failed to watch *v1.Node: Get https://10.43.0.1:443/api/v1/nodes?resourceVersion=804642&timeout=9m6s&timeoutSeconds=546&watch=true: dial tcp 10.43.0.1:443: connect: connection refused
E0314 05:14:18.593782 1 reflector.go:270] k8s.io/client-go/informers/factory.go:133: Failed to watch *v1.Pod: Get https://10.43.0.1:443/api/v1/pods?resourceVersion=733192&timeout=9m44s&timeoutSeconds=584&watch=true: dial tcp 10.43.0.1:443: connect: connection refused
E0314 05:14:19.246268 1 reflector.go:126] k8s.io/client-go/informers/factory.go:133: Failed to list *v1.Node: Get https://10.43.0.1:443/api/v1/nodes?limit=500&resourceVersion=0: dial tcp 10.43.0.1:443: connect: connection refused
E0314 05:14:20.247571 1 reflector.go:126] k8s.io/client-go/informers/factory.go:133: Failed to list *v1.Node: Get https://10.43.0.1:443/api/v1/nodes?limit=500&resourceVersion=0: dial tcp 10.43.0.1:443: connect: connection refused
E0314 05:14:21.248977 1 reflector.go:126] k8s.io/client-go/informers/factory.go:133: Failed to list *v1.Node: Get https://10.43.0.1:443/api/v1/nodes?limit=500&resourceVersion=0: dial tcp 10.43.0.1:443: connect: connection refused
E0314 05:14:22.250284 1 reflector.go:126] k8s.io/client-go/informers/factory.go:133: Failed to list *v1.Node: Get https://10.43.0.1:443/api/v1/nodes?limit=500&resourceVersion=0: dial tcp 10.43.0.1:443: connect: connection refused
E0315 12:50:25.949048 1 reststorage.go:160] unable to fetch pod metrics for pod istio-system/istio-ingressgateway-6bc84865b8-f8kjx: no metrics known for pod
E0315 12:50:40.959085 1 reststorage.go:160] unable to fetch pod metrics for pod istio-system/istio-ingressgateway-6bc84865b8-f8kjx: no metrics known for pod
E0315 12:50:56.860417 1 reststorage.go:160] unable to fetch pod metrics for pod istio-system/istio-ingressgateway-6bc84865b8-f8kjx: no metrics known for pod
Who can help me ?
The text was updated successfully, but these errors were encountered: