Creating backup of ArgoCD #
Red Hat OpenShift GitOps uses Argo CD to maintain cluster resources. Argo CD is an open-source declarative tool for the continuous integration and continuous deployment (CI/CD) of applications. Red Hat OpenShift GitOps implements Argo CD as a controller so that it continuously monitors application definitions and configurations defined in a Git repository. Then, Argo CD compares the specified state of these configurations with their live state on the cluster.
Backup Platform ArgoCD instance and deployments
$ ns=openshift-gitops
$ oc get deploy -n $ns -oyaml > deploy-$ns.bak
Export Platform ArgoCD data to a backup
$ argocd login \
`oc get route --selector=app.kubernetes.io/name=openshift-gitops-server -o go-template='{{range .items}}{{.spe
--sso
$ argocd admin export > backup-$ns.yaml