4 hours ago · Tech · 0 comments

Problem statement: An ArgoCD application’s sync operation is stuck in Terminating for hours. The web UI shows operation is terminating due to timeout. A PreSync hook resource keeps appearing as Running even though the underlying Job already completed in the cluster. % kubectl get application <app> -n argocd -o yaml | yq '.status.operationState.phase' Terminating The application controller is stuck in a busy loop: "Resuming in-progress operation. phase: Terminating, message: operation is terminating due to timeout" "No operation updates necessary to '<ns>/<app>'. Skipping patch" In my case this followed a transient ImagePullBackOff on a PreSync hook job: the image was being mirrored to a regional ECR, the first hook attempt failed, and by the time the image landed and the retry succeeded, the parent operation had already moved into Terminating and never recovered. The instinct is to clear the operation: kubectl patch application <app> -n argocd --type merge -p '{"operation": null}'…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.