feat: add comprehensive documentation and deployment scripts
- 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.
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
#!/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 "----------------------------------------"
|
||||
Reference in New Issue
Block a user