- required:
- optional:
- Develop in the test cluster using a branch
- Stop the application and the test cluster
- Change the targetRevision with the commit (optional: rebase)
- Merge PR
There are two ways to add the correct credentials to the repository:
- use the Argo CD UI
- use the
repository.yaml
If you want to deploy secrets with the code, the suggested way is to
- generate a token in your Github/Gitlab account
- uncomment the secrets part of the
repository.yaml
- change the
username
andpassword
(token) - use
kubectl apply ...
command (it will be otherwise applied in the below steps automatically)
- Make sure to select the correct kubernets cluster:
kubectx
- Install our helm chart:
helm repo add argo https://argoproj.github.io/argo-helm helm upgrade --install -n argocd --create-namespace argo-cd argo/argo-cd
- Apply Bootstrap file:
kubectl -n argocd apply -f bootstrap
- Retrieve password for Argo CD UI (command displayed after the above command):
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
- Use portforwarding to access ArgoCD:
kubectl -n argocd port-forward svc/argo-cd-argocd-server 8080:80
Basically, you can uninstall the helm chart:
helm uninstall argo-cd -n argocd
In order to verify, that no resources are still blocked by any ghost applications, check the list of all or specific workspaces:
kubectl get all -A
kubectl get all -n NAMESPACE
If there are any apps still running, use the advice above to remove everything from a namespace.
In order to remove everything from a certain namespace (assume, everything for one application is in one namespace):
kubectl delete all --all -n NAMESPACE
https://stackoverflow.com/questions/71164538/argocd-application-resource-stuck-at-deletion
kubectl patch app APP_NAME -n argocd -p '{"metadata": {"finalizers": null}}' --type merge