ship-status: set imagePullPolicy Always for containers using mutable tags#82050
Conversation
…tags Containers using mutable _latest tags default to imagePullPolicy IfNotPresent because the tag name is not exactly ":latest". This means back-to-back image promotions can serve stale cached images when the pod lands on a node that already pulled the previous version under the same tag. Set imagePullPolicy: Always on all ship-status-dash containers that use _latest suffixed tags (dashboard, ship-status-mcp, db-migration, component-monitor) to ensure the kubelet always validates the digest with the registry.
|
@redhat-chai-bot, Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
/ok-to-test |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: redhat-chai-bot, smg247 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@redhat-chai-bot: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
|
/pj-rehearse skip |
|
@smg247: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
Summary
Containers in the ship-status-dash deployments use mutable
_latestsuffixed tags (e.g.ship-status-dash_dashboard_latest). Because the tag name is not exactly:latest, Kubernetes defaultsimagePullPolicytoIfNotPresentrather thanAlways.This means back-to-back image promotions can serve stale cached images when the pod lands on a node that already pulled the previous version under the same tag.
Changes
Set
imagePullPolicy: Alwayson all ship-status-dash containers that use_latestsuffixed tags:db-migration(init),dashboard,ship-status-mcpcomponent-monitorContainers using pinned version tags (
git-sync,oauth-proxy) are not modified.Root Cause
Discovered when PR openshift-eng/ship-status-dash#130 merged shortly after PR #129. Both promoted images to the same
_latesttag. The Keel-triggered rollout landed the new pod on a node that had already cached the PR #129 image, causing the pod to run stale code despite the registry having the newer image.@smg247 requested via Chai Bot