kind: docker readiness timeout may be too low on overloaded machines
sometimes there has a panic, when using kind to create a HA cluster.
[zhang@localhost kind]$ kind create cluster --config kind-config-ha.yaml
Creating cluster "kind" ...
β Ensuring node image (kindest/node:v1.13.4) πΌ
β Preparing nodes π¦π¦π¦π¦π¦π¦
ERRO[17:36:55] timed out waiting for docker to be ready on node kind-control-plane
panic: send on closed channel
goroutine 11 [running]:
sigs.k8s.io/kind/pkg/cluster/internal/create.createNodeContainers.func1(0xc00008a300, 0xc000397300, 0x1d,
0xc0002c0000, 0xc000117bc0)
/home/zhang/go/src/sigs.k8s.io/kind/pkg/cluster/internal/create/nodes.go:114 +0x9c
created by sigs.k8s.io/kind/pkg/cluster/internal/create.createNodeContainers
/home/zhang/go/src/sigs.k8s.io/kind/pkg/cluster/internal/create/nodes.go:105 +0x2e0
maybe the channel has been closed.
https://github.com/kubernetes-sigs/kind/blob/master/pkg/cluster/internal/create/nodes.go#L96-L135
/cc @BenTheElder
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (18 by maintainers)
Commits related to this issue
- Prepare release 0.3.6 (#405) — committed to stg-0/kind by stg-0 6 months ago
perhaps letβs bump it to 60s for now, add a TODO, and come back to it then π€
hah I agree with you. Today I may test its time on different configured machines, I hope to provide some advice.
-1 to more flags! π
setting this in either is going to be brittle since the value is not portable. the only reason we have a bound at all is to avoid indefinite hang, at some point this value will become quite unreasonable π (EG 1 hour would be pretty ridiculous)
In fact, my intention to mention the issue is the problem of panic, not the timeout, although this is also a problem. πΈ
Should not panic anymore at least. Timeout still needs thought / changes.
What values are working for your usage?
The config file:
The system info: