📝 Originally published (in Japanese) at forge.workstyle.tech .
TL;DR: A Kubernetes Recreate deployment stopped when a new container image returned not found . The image was present in the registry, but connections from production nodes timed out. Measuring the registry path and avoiding image pulls during deployment helped in some cases.
TL;DR
When a Recreate deployment stalled on Kubernetes with not found , the image was present in the registry, but the connection from the production node to the registry was timing out. Changing the pull policy to IfNotPresent avoided re-pulling an existing image. Preloading the image onto the target node before the Recreate deployment also helped avoid pulling it during deployment. The root cause of the network issue is still unknown.
Why Did not found Stop the Recreate?
not found alone doesn’t tell you whether the image is missing from the registry or the registry is unreachable.…