mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 12:03:59 +00:00
28 lines
1.3 KiB
Bash
28 lines
1.3 KiB
Bash
#!/usr/bin/env bash
|
|
export KUBECONFIG=/Users/chrisfu/dev/knoe/knoe-k3s.kubeconfig
|
|
|
|
echo "==> Registry ConfigMaps:"
|
|
kubectl -n gitea get cm --no-headers | grep -i registry
|
|
|
|
echo "==> Registry configure ConfigMap content (bucket-related lines):"
|
|
kubectl -n gitea get cm gitlab-registry -o jsonpath='{.data.configure}' 2>/dev/null \
|
|
| grep -iE "bucket|s3|endpoint|access" | head -20 || true
|
|
kubectl -n gitea get cm -l app=registry \
|
|
-o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{.data}{"\n"}{end}' 2>/dev/null \
|
|
| grep -iE "bucket|s3|endpoint" | head -20 || true
|
|
|
|
echo "==> registry-storage secret:"
|
|
kubectl -n gitea get secret gitlab-registry-secret \
|
|
-o jsonpath='{.data}' 2>/dev/null && echo
|
|
|
|
echo "==> Minio pod node placement:"
|
|
kubectl -n gitea get pod -l app=minio \
|
|
-o custom-columns='POD:.metadata.name,NODE:.spec.nodeName,STATUS:.status.phase'
|
|
|
|
echo "==> Try reading config.yml via debug container on minio node:"
|
|
kubectl -n gitea run reg-debug \
|
|
--image=registry.gitlab.com/gitlab-org/build/cng/gitlab-container-registry:v4.38.0-gitlab \
|
|
--restart=Never --rm --attach \
|
|
--overrides='{"spec":{"nodeName":"gandalf.knoe.org","tolerations":[{"operator":"Exists"}],"containers":[{"name":"reg-debug","image":"alpine:latest","command":["sh","-c","echo done"]}]}}' \
|
|
2>&1 | head -5 || true
|