k8wiz
Argo CD
Hard
Troubleshooting & Debugging

A PreSync hook Job sets ttlSecondsAfterFinished: 0 so finished Jobs vanish quickly. What problem can this cause during an Argo CD sync?

Select your answer:

Show answer and explanation

Answer: The sync can wait on a hook Job that no longer exists

Explanation

Argo CD reads the hook Job to find out whether the phase succeeded. If the TTL controller deletes the Job first, the sync can end up waiting for a hook that is gone. The Argo CD docs recommend the argocd.argoproj.io/hook-delete-policy annotation for cleanup instead of ttlSecondsAfterFinished.

Read more about Argo CD