Skip to content

Conversation

eedygreen
Copy link

The Error

ERROR: failed to create cluster: node(s) already exist for a cluster with the name "kind"

For an existing cluster, the script in the setup/00-intro.sh will fail.
This command kind create cluster --config kind.yaml will exit if there is an existing cluster.

As a result of it early exit, it cause failure to the rests of the command here

The Fix

kind get clusters | grep -q "kind" || kind create cluster --config kind.yaml

@vfarcic
Copy link
Owner

vfarcic commented May 16, 2025

I'm afraid that if the cluster is already running, whatever is in that cluster might interfere with the setup. I feel it's safer to remove the cluster and create a new one. What do you think? If you agree, the change to the script might need to be to check for the existence of the cluster and, if it's found, an input asking a user to confirm that it's okay to delete it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants