billowy-horse-79629
03/13/2022, 1:59 PMlet spotPrice = aws.ec2.getSpotPriceOutput({instanceType: eksInstanceType}).get()
and this is the cluster node-pool options:
{
instanceType: instanceType,
desiredCapacity:desiredCapacity,
minSize: minSize,
maxSize: maxSize,
...(spotPrice) && {spotPrice: spotPrice},
}
The error that I get is pretty clear, I need to add more filter to the getSpotPriceOutput function.
I wonder whether there’s a better way to set the spot price instead of fetching the live spot price, can’t I just set the nodepool to be Spot, without configuring the price ?
Thanks guys 🙂