prole/tmp/debug_registry.sh

20 lines
800 B
Bash

#!/usr/bin/env bash
export KUBECONFIG=/Users/chrisfu/dev/knoe/knoe-k3s.kubeconfig
REG=$(kubectl -n gitea get pod -l app=registry --no-headers -o name | head -1)
echo "==> Registry pod: $REG"
echo "==> Registry previous crash log (full):"
kubectl -n gitea logs "$REG" --previous 2>&1 | grep -v LD_PRELOAD || true
echo "==> Minio bucket list (verify):"
kubectl -n gitea logs minio-init 2>&1 | grep -E "^\[|BUCKET|created|DONE" | head -15
echo "==> Registry secret bucket config:"
kubectl -n gitea get secret gitlab-registry-storage \
-o jsonpath='{.data.config}' 2>/dev/null | base64 -d | head -20 || \
kubectl -n gitea get configmap -l app=registry --no-headers 2>/dev/null | head -5 || true
echo "==> Migrations pod completion status:"
kubectl -n gitea get pods --no-headers | grep migrations