We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14d1a6d commit dee1858Copy full SHA for dee1858
contrib/create_cluster.sh
@@ -5,7 +5,7 @@ KUBE_VERSION=v1.18.8
5
REG_NAME=kind-registry
6
REG_PORT=5000
7
8
-./contrib/create_local_registry.sh
+./contrib/create_local_registry.sh ${REG_NAME} ${REG_PORT}
9
echo ">>> Creating Kubernetes ${KUBE_VERSION} cluster ${DEVENV}"
10
11
# create a cluster with the local registry enabled in containerd
contrib/create_local_registry.sh
@@ -1,6 +1,6 @@
1
# create registry container unless it already exists
2
-REG_NAME='kind-registry'
3
-REG_PORT='5000'
+REG_NAME=${$1:-'kind-registry'}
+REG_PORT=${$2:-'5000'}
4
running="$(docker inspect -f '{{.State.Running}}' "${REG_NAME}" 2>/dev/null || true)"
if [ "${running}" != 'true' ]; then
docker run \
0 commit comments