Wrong image reported in container status #1042
-
Hello, i am using io.fabric8:kubenretes-client java client to talk to my kubernetes cluster to get status and image from as artemis pod deployed by artemis-operator 1.2.1. However, in the containerStatuses section, the image reported is different from image reported using kubectl. Attached is the raw json returned when my java client asked k8s for all info related to artemis pod. Please pay attention to lines 1227-1247 and 1862-1869. I am not sure if this is an issue with k8s of the artemis-operator, hope someone can shed some light on this. Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@lnthai2002 the image in pod_info.json is What different container image do you see? |
Beta Was this translation helpful? Give feedback.
The container image/imageId may not match the image used in the PodSpec, as it may have been resolved by the runtime, see https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#containerstatus-v1-core
Indded there is also a related kubernetes issue: kubernetes/kubernetes#115199
Furthermore
quay.io/artemiscloud/activemq-artemis-broker-kubernetes@sha256:b293c1269166cc6181f68b8d803fdfcf20fdbd5df2787ed0453724b22e298fb2
points to a container image manifest with multiple architectures, see https://developers.redhat.com/articles/2023/11/03/how-build-multi-architecture-container-images