Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

install/k8s: detect kind and show warning about additional requirements #615

Merged
merged 1 commit into from
Oct 19, 2020

Conversation

mitchellh
Copy link
Contributor

Fixes (partially) #527

This uses a heuristic on waypoint install to detect Kind clusters and notes to the user that it must be setup with LoadBalancer support which it does not have out of the box nor is it trivial to setup. This will surprise users less when their installs hang.

We should update the docs too but I think this is useful to have in the CLI.

@github-actions github-actions bot added the core label Oct 19, 2020
@mitchellh mitchellh changed the title internal/cli: detect kind and show warning about additional requirements install/k8s: detect kind and show warning about additional requirements Oct 19, 2020
Copy link
Contributor

@evanphx evanphx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is totally fine, but we should also see if there is some API and/or config we can inspect to see if there is something configured in the cluster to handle load balancing.

We can probably also look at the events on the Service and presume that, if after a minute or so there are no updates, that the cluster doesn't have a Load Balancer handler.

@mitchellh
Copy link
Contributor Author

Agreed with both. One minute won't be enough on a load balancer, I just tried on AKS and DO and both took over 3 minutes to succeed, so I think we'd have to wait quite long there.

On detecting KinD in a better, way, totally would love to do that but couldn't find anything!

@mitchellh mitchellh merged commit 94a2163 into main Oct 19, 2020
@mitchellh mitchellh deleted the b-kind branch October 19, 2020 16:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants