prole/tmp/reduce_pressure_and_wait.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

26 lines
1.1 KiB
Bash

#!/usr/bin/env bash
export KUBECONFIG=/Users/chrisfu/dev/prole/prole-k3s.kubeconfig
echo "==> Deleting second webservice pod to reduce RAM pressure on gandalf..." && \
kubectl -n gitea delete pod gitlab-webservice-default-675ccb7b99-mmclp --force --grace-period=0 --ignore-not-found 2>&1
echo "==> Waiting 15 min for puma to complete boot on single pod..." && \
sleep 900
echo "==> Webservice puma log:" && \
kubectl -n gitea logs -l app=webservice -c webservice --tail=5 2>&1 | grep -v LD_PRELOAD | head -8
echo "==> Sidekiq log:" && \
kubectl -n gitea logs -l app=sidekiq --tail=3 2>&1 | grep -v LD_PRELOAD | head -4
echo "==> Pod readiness:" && \
kubectl -n gitea get pods --no-headers | grep -E "webservice|sidekiq" | awk '{print $1,$2,$3}'
echo "==> CR conditions:" && \
kubectl -n gitea get gitlab gitlab \
-o jsonpath='{range .status.conditions[*]}{.type}: {.status} ({.message}){"\n"}{end}' 2>&1
echo "==> Root password (if Available):" && \
kubectl -n gitea get secret gitlab-gitlab-initial-root-password \
-o jsonpath='{.data.password}' 2>/dev/null | base64 -d && echo