13 lines
300 B
Bash
Executable File
13 lines
300 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
|
|
if kind get clusters 2>/dev/null | grep -qx eth; then
|
|
echo "kind cluster 'eth' already exists"
|
|
else
|
|
echo "creating kind cluster 'eth'..."
|
|
kind create cluster --config k8s/kind-config.yaml
|
|
fi
|
|
|
|
kubectl config use-context kind-eth
|