Initial commit: k8s cluster manifests and scripts

This commit is contained in:
2026-04-01 15:34:02 +08:00
commit 2f04fa4473
49 changed files with 4109 additions and 0 deletions

18
apps/opengist/deploy.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -e
MANIFESTS_DIR="./manifests"
echo "🚀 Deploying OpenGist from ${MANIFESTS_DIR} ..."
kubectl apply -f "${MANIFESTS_DIR}/opengist-pvc.yaml"
kubectl apply -f "${MANIFESTS_DIR}/opengist-deployment.yaml"
kubectl apply -f "${MANIFESTS_DIR}/opengist-svc-web.yaml"
kubectl apply -f "${MANIFESTS_DIR}/opengist-svc-ssh.yaml"
kubectl apply -f "${MANIFESTS_DIR}/opengist-ingress.yaml"
echo "⏳ Waiting for deployment to be ready..."
kubectl rollout status deployment/opengist
echo "✅ OpenGist deployed successfully"