-
Notifications
You must be signed in to change notification settings - Fork 294
config: make sure minimum servers is always >= 0 #158
Conversation
I was setting up a new cluster and intended to create all of my worker nodes using node pools. This all works, except it tries to set the ASG's minSize to -1, and CloudFormation complains. This fixes that.
Current coverage is 69.78% (diff: 0.00%)@@ master #158 diff @@
==========================================
Files 5 5
Lines 1110 1112 +2
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 776 776
- Misses 249 250 +1
- Partials 85 86 +1
|
Closed in favor of #142. |
@iameli Thanks for trying kube-aws 👍 If you've chosen ASG, workerCount is still required in order to instruct ASG to set its desired capacity. workerCount: 1 If you've chosen Spot Fleet, workerCount is not required hence you can keep #workerCount: 1
worker:
spotFleet:
targetCapacity: 10
# *snip* Also, regardless of how kube-aws works as of now, Node Pool is still an experimental feature hence there may be a lot of space for improvements and there may even be some friction for users in it. |
Anyways, this and @c-knowles's fix do resolve the problem arises when you try to set workerCount to zero. Thanks for the fix to both of you! I'm just wanting to know the exact reason why you've tried to do so in the first place so that |
I have one cluster, Each node pool has |
@iameli Understood! That's definitely a valid use-case which I had imagined/intended but not tested myself yet. |
Great, that's definitely the same outcome (worker count of zero in the main cluster def). The decouple of the node pools makes it quite a bit more flexible. |
I was setting up a new cluster and intended to create all of my worker nodes using node pools, so I had a
workerCount: 0
line in there. This all works, except it tries to set the ASG's minSize to -1, and CloudFormation complains. This fixes that.