20d8146e8c
- Created new documentation files including TROUBLESHOOTING.md, CONFIGURATION.md, and CONTRIBUTING.md. - Added deployment guide with automated and manual instructions. - Introduced new YAML configurations for Kubernetes resources and Helm charts. - Implemented a deployment script for setting up the GitOps infrastructure.
61 lines
1.6 KiB
Bash
61 lines
1.6 KiB
Bash
#!/usr/bin/bash
|
|
set -euo pipefail
|
|
|
|
# ----
|
|
|
|
install_cert_manager() {
|
|
clear
|
|
echo "----------------------------------------"
|
|
echo " ⌛ Install Cert-Manager"
|
|
echo " ⌛ Install ArgoCD"
|
|
echo " ⌛ Setup Sealed Secrets"
|
|
echo " ⌛ Finish Setup"
|
|
echo "----------------------------------------"
|
|
|
|
echo "🚀 Installing Cert-Manager..."
|
|
kustomize build --enable-helm ../cert-manager/eu-central-1 | kubectl apply -f -
|
|
echo "✅ Cert-Manager installed successfully!"
|
|
}
|
|
|
|
|
|
# ----
|
|
|
|
install_argocd() {
|
|
clear
|
|
echo "----------------------------------------"
|
|
echo " ✅ Install Cert-Manager"
|
|
echo " ⌛ Install ArgoCD"
|
|
echo " ⌛ Setup Sealed Secrets"
|
|
echo " ⌛ Finish Setup"
|
|
echo "----------------------------------------"
|
|
|
|
echo "🚀 Installing ArgoCD..."
|
|
kustomize build --enable-helm ../argocd/eu-central-1 | kubectl apply -f -
|
|
echo "✅ ArgoCD installed successfully!"
|
|
}
|
|
|
|
|
|
# ----
|
|
|
|
install_cert_manager
|
|
install_argocd
|
|
|
|
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.15.1/deploy/static/provider/baremetal/deploy.yaml
|
|
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
|
|
|
|
sleep 30s
|
|
kustomize build ../git/local | kubectl apply -f -
|
|
sleep 5s
|
|
|
|
kubectl apply -f ../local/root-apps-app.yaml
|
|
|
|
clear
|
|
|
|
ARGO_PW=$(kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 --decode)
|
|
|
|
echo "----------------------------------------"
|
|
echo " 🎉 Kubernetes local cluster setup complete!"
|
|
echo " 🎉 Access ArgoCD at: https://localhost:31443"
|
|
echo " 🎉 Default login: admin / $ARGO_PW"
|
|
echo "----------------------------------------"
|