argocd, argocd-app: add page (#9846)

* argocd: add page

* argocd-app: add page

---------

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>
pull/11/head
bataliero 2023-03-02 17:16:17 +01:00 committed by GitHub
parent adbf664932
commit 432311b4ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,36 @@
# argocd app
> Command-line interface to manage applications by Argo CD.
> More information: <https://argo-cd.readthedocs.io/en/stable/user-guide/commands/argocd_app/>.
- List applications:
`argocd app list --output {{json|yaml|wide}} `
- Get application details:
`argocd app get {{app_name}} --output {{json|yaml|wide}}`
- Deploy application internally (to the same cluster that Argo CD is running in):
`argocd app create {{app_name}} --repo {{git_repo_url}} --path {{path/to/repo}} --dest-server https://kubernetes.default.svc --dest-namespace {{ns}}`
- Delete an application:
`argocd app delete {{app_name}}`
- Enable application auto-sync:
`argocd app set {{app_name}} --sync-policy auto --auto-prune --self-heal`
- Preview app synchronization without affecting cluster:
`argocd app sync {{app_name}} --dry-run --prune`
- Show application deployment history:
`argocd app history {{app_name}} --output {{wide|id}}`
- Rollback application to a previous deployed version by history ID (deleting unexpected resources):
`argocd app rollback {{app_name}} {{history_id}} --prune`

13
pages/common/argocd.md Normal file
View File

@ -0,0 +1,13 @@
# argocd
> Command-line interface to control a Argo CD server.
> Some subcommands such as `argocd app` have their own usage documentation.
> More information: <https://argo-cd.readthedocs.io/en/stable/user-guide/commands/argocd/>.
- Login to Argo CD server:
`argocd login --insecure --username {{user}} --password {{password}} {{argocd_server:port}}`
- List applications:
`argocd app list`