Open hseffler opened 4 years ago
This is container runtime dependent. Which runtime are you using? The code for docker to set this is here: https://github.com/google/cadvisor/blob/master/container/docker/handler.go#L221
Yes, it's docker. Is there any reason why docker would it report the image in use so differently?
Here is the docker container Config we have to work with: https://godoc.org/github.com/docker/docker/api/types/container#Config. I assume they do that for simplicity (just return what users sent them), and also not to confuse users (e.g. "why did my image change from tag to sha when I inspect?").
Is there any mitigation for this, is this bug going to be kept in consideration?
I am looking at metrics exported by cadvisor as embedded in kubelet from k8s 1.13.5.
On any random worker node the image-label seems to have one of the following values
From looking at the deployments that brought those containers there, all were deployed by tag, partly from public, mostly from a private registry.
For building queries the image-label should be consitent for all containers.