Terminate stuck sync operation

Cancel an in-progress sync stuck on a hook or 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>

    Trigger a Deployment rollout restart through Argo's resource actions

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

    Create a deny sync window to freeze deploys during off-hours; cron-based schedule

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

    Set sync options for safe prune and SSA; note: SSA fixes large-CRD apply conflicts

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

    Export/import all apps, projects and settings for DR; cluster-secret aware

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

    Sync only one resource by group:kind:name; isolates a fix without full app sync

all 27 argocd commands