add local cluster config
This commit is contained in:
12
ctrl/kind-config.sh
Executable file
12
ctrl/kind-config.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user