Files
k8s/02-k8s/README.md
2025-09-07 15:19:53 +02:00

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:

  1. Get random password:
argocd admin initial-password -n argocd
  1. Establish UI forward:
kubectl port-forward svc/argocd-server -n argocd 8080:443
  1. 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