#!/usr/bin/env bash # Redis — the cluster half of the redis cabinet. # # Cache, and the broker anything queue-shaped runs on. No persistence: a broker # that loses its queue on restart is the honest local model, and a PVC here buys # nothing but a volume to clean up. set -euo pipefail cd "$(dirname "$0")/.." source ./lib/config.sh load_config K="kubectl --context ${KUBECONTEXT}" NS="${DATA_NAMESPACE:-data}" $K get namespace "$NS" >/dev/null 2>&1 || $K create namespace "$NS" echo " applying manifests" $K apply -n "$NS" -f - >/dev/null <