Stop a stuck sync

Cancel a running sync that is stuck on a hook or a pending resource

argocd app terminate-op <name>

tool
argocd27 commands
tags
argocdtroubleshootingdebugk8s

More argocd commands

  • argocd app actions run <name> restart --kind Deployment --resource-name <id>

    Start a rollout restart of a Deployment through Argo resource actions

  • argocd proj windows add <name> --kind deny --schedule '0 0 * * *' --duration 8h --applications '*'

    Block syncs every night from 00:00 for 8 hours, so nobody deploys while everyone sleeps

  • argocd app set <name> --sync-option Prune=true --sync-option ServerSideApply=true

    Set sync options for prune and SSA; SSA fixes apply conflicts with large CRDs

  • argocd admin export -n argocd > argo-backup.yaml # restore: argocd admin import -n argocd - < argo-backup.yaml

    Export all apps, projects and settings, including cluster secrets, for disaster recovery; the comment shows how to import them back

  • argocd app sync <name> --resource apps:Deployment:<id>

    Sync only one resource by group:kind:name, so you can apply a fix without a full app sync

all 27 argocd commands