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

17 lines
849 B
Bash

#!/usr/bin/env bash
export KUBECONFIG=/Users/chrisfu/dev/prole/prole-k3s.kubeconfig
echo "==> Waiting for minio restart and capturing startup logs..."
kubectl -n gitlab logs gitlab-minio-65b8ddcd4d-5xlgc -f --tail=30 2>&1 | \
grep -v "LD_PRELOAD" | timeout 30 head -40 || true
echo "==> Export dir contents on gandalf:"
kubectl -n gitlab run minio-inspect \
--image=alpine:latest --restart=Never --rm --attach \
--overrides='{
"spec":{"nodeName":"gandalf.prole.org","tolerations":[{"operator":"Exists"}],
"volumes":[{"name":"export","hostPath":{"path":"/synology/d005/gitlab/minio","type":"Directory"}}],
"containers":[{"name":"minio-inspect","image":"alpine:latest",
"command":["sh","-c","ls -laR /export/ 2>&1 | head -30 && du -sh /export/ 2>&1"],
"volumeMounts":[{"name":"export","mountPath":"/export"}]}]}}' 2>&1