Initial commit: k8s cluster manifests and scripts
This commit is contained in:
12
apps/opengist/stop.sh
Executable file
12
apps/opengist/stop.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
echo "🛑 Stopping OpenGist (PVC will be kept)..."
|
||||
|
||||
kubectl scale deployment opengist --replicas=0
|
||||
|
||||
echo "⏳ Waiting for pod termination..."
|
||||
kubectl wait --for=delete pod -l app=opengist --timeout=60s || true
|
||||
|
||||
echo "✅ OpenGist stopped (data preserved)"
|
||||
|
||||
Reference in New Issue
Block a user