prole/tmp/restart_gitlab_pods.sh
chrisfu b4fc5641db checkpoint: sanitize prole config for host portability
- fix conf/prod/prole.cfg by replacing hardcoded /Users/chrisfu paths with /Users/chrisfu

- remove injected [update.sh] log lines and stray password artifacts so config is executable

- include latest pending updates across deployment config, UI/core flow, vault/network artifacts, and helper scripts
2026-04-10 05:58:40 -07:00

21 lines
643 B
Bash

#!/usr/bin/env bash
set -euo pipefail
export KUBECONFIG=/Users/chrisfu/dev/prole/prole-k3s.kubeconfig
echo "==> Deleting failed jobs..."
kubectl -n gitlab delete jobs --all --ignore-not-found
echo "==> Deleting crashed/stuck GitLab pods..."
kubectl -n gitlab delete pods \
-l 'app in (toolbox,registry,gitaly,webservice,sidekiq,gitlab-exporter,minio)' \
--ignore-not-found
echo "==> Waiting 120s for operator to reconcile and pods to start..."
sleep 120
echo "==> Pod status:"
kubectl -n gitlab get pods --sort-by=.metadata.creationTimestamp | grep -v jemalloc-builder
echo "==> GitLab CR status:"
kubectl -n gitlab get gitlab gitlab