Closed olivierpilotte closed 3 years ago
/area provider/spotinst
This is the PR that introduced the bug: https://github.com/kubernetes/kops/pull/11216
/cc @olemarkus
@olivierpilotte Can this be closed now that the fix was merged?
Yes I'm closing this issue. Thanks
/kind bug
1. What
kops
version are you running? The commandkops version
, will display this information.2. What Kubernetes version are you running?
kubectl version
will print the version if a cluster is running or provide the Kubernetes version specified as akops
flag.3. What cloud provider are you using?
4. What commands did you run? What is the simplest way to reproduce this issue?
Using SpotInst to launch instances instead of the AWS auto scaling groups, nodeup runs 'describeAutoscalingInstances'. The instances dont' show up in the result.
This code assumes there's at least 1 instance in the result: https://github.com/kubernetes/kops/blob/0f9388c4cd109ee71ac5ec01d3e0bfddd214808b/upup/pkg/fi/nodeup/command.go#L725
Simple resolution: check if the result has at least 1 instance.
nodeup logs: