Files
nvi/ctrl/kind-config.sh

15 lines
328 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
mkdir -p ../.data/postgres
if kind get clusters 2>/dev/null | grep -qx nvi; then
echo "kind cluster 'nvi' already exists"
else
echo "creating kind cluster 'nvi'..."
kind create cluster --config k8s/kind-config.yaml
fi
kubectl config use-context kind-nvi