#!/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