Enable prune and server-side apply

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

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

tool
argocd27 commands
tags
argocdgitopsk8s

More argocd commands

  • 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

  • argocd login argocd.example.com --username admin --password $(kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath='{.data.password}' | base64 -d)

    Authenticate argocd CLI using the initial admin secret

  • argocd app list

    Show all ArgoCD applications with sync/health status

  • argocd app sync myapp --prune

    Trigger sync and prune removed resources

all 27 argocd commands