refactor storage minio for k8s
This commit is contained in:
12
ctrl/kind-create.sh
Executable file
12
ctrl/kind-create.sh
Executable 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"
|
||||
Reference in New Issue
Block a user