1.2 KiB
1.2 KiB
Kubernetes Setup
Bootstrapping
1. Deploy Cluster
Follow documentation at Deploy Kubernetes Cluster.
2. Deploy Argo CD
Deployment of ArgoCD itself:
kustomize build --enable-helm infra/controllers/argocd | kubectl apply -f -
You can uninstall it with the command
kustomize build --enable-helm infra/controllers/argocd | kubectl delete -f -
Configure ArgoCD to pull our setup from this repo:
kubectl apply -k infra
Temporary legacy admin user
Configure Admin users:
- Get random password:
argocd admin initial-password -n argocd
- Establish UI forward:
kubectl port-forward svc/argocd-server -n argocd 8080:443
- CLI Login with previously retrieved password and username
admin:
argocd login localhost:8080 --insecure
Other
What's keepign a namespace in state deleting?
kubectl api-resources --verbs=list --namespaced -o name \
| xargs -n 1 kubectl get --show-kind --ignore-not-found -n argocd
Delete ArgoCD applications stuck in dependencies
kubectl -nargocd patch applications/controllers -p '{"metadata": {"finalizers": null}}' --type merge