13 lines
476 B
Bash
Executable File
13 lines
476 B
Bash
Executable File
#!/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"
|