-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
kubelet: pod metrics not visible with Docker 18 (19.03 works) #94281
Comments
/sig node |
We've narrowed this down to it being a problem with Docker 18, it looks like once we upgraded to Docker 19.03, please feel free to close this off if it's not longer relevant. I'm wondering if this would be better documented somewhere? Maybe it is and we missed it? Thanks. |
hi,
^ you've mentioned in the OP that this does not happen in 1.18.2.
to clarify, with 1.19.0 and Docker 18 the problem happens, but not with 1.19 and Docker 19.03? |
Yes sorry, if that wasn't clear. |
ok, this is very odd. hopefully someone from SIG node sees this. |
/retitle kubelet: pod metrics not visible with Docker 18 (19.03 works) |
/cc @dashpole |
I can also confirm that issue reproduces with
/priority important-soon |
Can anyone grab metrics from the kubelet on one of those nodes? |
I am experiencing the same issue with new Kubernetes 1.19 and docker 18.9.9 update on Digitalocean
|
Same issue here on our cluster running k8s 1.19.3 with docker 18.9.8. node metrics still work, but there are no pod metrics:
On a different cluster also running k8s 1.19.3 with docker 19.3.12 the pod and node metrics are ok. Edit: This led me to check the kubelet logs and look what I found there:
So the kubelet expects a docker server with api version >=1.40 which was introduced with docker 19 (docker 18 is on api version 1.39). I always thaught that docker 18 is still supported by kubernetes but probably it's worth upgrading docker now... Anyway I'm not 100% confident that this is caused by the referenced commit, but at least it seems possible to me.
Can't find such an info in https://kubernetes.io/docs/setup/release/notes/ can someone clarify which versions of docker are supported by k8s 1.19.X? Edit 2: |
@JornShen please see #89687 (review) please try |
@dims thanks for guide. I know one solution to deal with the problem inspiring from your advise. /assign |
The fix PR google/cadvisor#2714 has been merged. So we wait for cadvisor' owner to update k/k dependency of cadvisor to v0.38 in 1.20 k8s? And cherry pick the dependency to v1.19(k8s) ? @dims I see there have been a issuse #96287 to trace this thing. |
@JornShen yes someone will pick up #96287 soon. @bobbypage are we ready to cut a release of cadvisor? |
ack, I will cut new release of cadvisor shortly. |
@dims @bobbypage all right, thanks! |
@pmyjavec @saul-gush @ialidzhikov @serathius @ghouscht update to the newest v1.19-release, problem had been solve by #96849, or update the v1.20 alph version after 2020/11/14 by #96425 merged if you use docker verison under v19.X |
@JornShen: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What happened:
When deploying a cluster on v1.19.0 using kubeadm, we're no longer seeing kubelet reporting pod metrics from the node, this breaking metrics-server to some degree as we're missing pod statistics:
Note the empty pods section
What you expected to happen:
We'd see a populated list of pod metrics as we did before that looks like:
How to reproduce it (as minimally and precisely as possible):
Use
kubeadm init
on 1.19.0 to create a new cluster and query the stats endpoint using:We can ran the same configuration on
v1.18.2
and didn't hit the issue.Anything else we need to know?:
Environment:
kubectl version
):cat /etc/os-release
):uname -a
):N/A
The text was updated successfully, but these errors were encountered: