diff --git a/site/static/examples/kind-with-registry.sh b/site/static/examples/kind-with-registry.sh index 9fe55a821a..c0c52b2b47 100755 --- a/site/static/examples/kind-with-registry.sh +++ b/site/static/examples/kind-with-registry.sh @@ -36,7 +36,7 @@ EOF # We want a consistent name that works from both ends, so we tell containerd to # alias localhost:${reg_port} to the registry container when pulling images REGISTRY_DIR="/etc/containerd/certs.d/localhost:${reg_port}" -for node in $(kind get nodes); do +for node in $(kubectl get nodes -o jsonpath='{.items[*].metadata.name}'); do docker exec "${node}" mkdir -p "${REGISTRY_DIR}" cat <