Consolidate bootstrapping steps, add cert-manager
This commit is contained in:
parent
3b85d6e85b
commit
ec5b2ab5f1
7 changed files with 127 additions and 17 deletions
26
scripts/post-apply.sh
Executable file
26
scripts/post-apply.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh
|
||||
# Post-apply bootstrap script
|
||||
# Run this once after 'make apply' completes on a fresh cluster
|
||||
|
||||
set -e
|
||||
|
||||
echo "==> Fetching kubeconfig..."
|
||||
make kubeconfig
|
||||
|
||||
echo "==> Fetching talosconfig..."
|
||||
make talosconfig
|
||||
|
||||
echo "==> Waiting for cluster to be ready..."
|
||||
kubectl wait --for=condition=Ready node --all --timeout=120s
|
||||
|
||||
echo "==> Importing ingress-nginx namespace into Terraform state (if needed)..."
|
||||
cd terraform
|
||||
terraform import kubernetes_namespace.ingress_nginx ingress-nginx 2>/dev/null || echo "Already in state, skipping"
|
||||
cd ..
|
||||
|
||||
echo "==> Bootstrapping ArgoCD App of Apps..."
|
||||
make bootstrap
|
||||
|
||||
echo ""
|
||||
echo "Done! ArgoCD should be available at https://argocd.dumpnet.chat shortly."
|
||||
echo "Get your password with: make argocd-password"
|
||||
Loading…
Add table
Add a link
Reference in a new issue