refactor storage minio for k8s

This commit is contained in:
2026-03-26 09:20:23 -03:00
parent e27cb5bcc3
commit c9ba9e4f5f
22 changed files with 961 additions and 18 deletions

12
ctrl/kind-create.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# Create the kind cluster with host media mount.
# Usage: MEDIA_HOST_PATH=/home/you/mpr/media ./kind-create.sh
set -euo pipefail
: "${MEDIA_HOST_PATH:?Set MEDIA_HOST_PATH to your local media directory (e.g. /home/you/mpr/media)}"
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
CONFIG_TPL="$SCRIPT_DIR/k8s/kind-config.yaml.tpl"
envsubst < "$CONFIG_TPL" | kind create cluster --config -
echo "Cluster 'mpr' created with media mount: $MEDIA_HOST_PATH → /mnt/media"