You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment we assume order of subnets we get in a list is the same as the order of AZs. This is indeed the case most of the time with eksctl create cluster, as the lists are the same.
However, if we want to create a nodegroup separately, that assumption is most likely to break.
I believe we have to options here:
let cluster stack export the list of AZs in the same order as subnets, which is bound to ordering assumption at the time of creation (which is probably fine)
when importing subnets from cluster stack, check which AZs they belong to (probably via an API lookup on eksctl side, doing it in CloudFormation would be harder)
Broadly, the boundary is currently unclean between how we use stack exports and how we maintain state on eksctl side, we have a bit of mix going on at the moment and it's most likely to stay that way, as we do what's convenient most of the time, especially because some of CloudFormation facilities are harder to use then others and we only utilise some of them.
This area needs to be reviewed.
The text was updated successfully, but these errors were encountered:
This is arguably okay for most of current uses actually, this is not called in isolation from cluster stack creation process. Calling the API actually will require mocking in tests. I maybe easier to export list of zone, as it's probably safe to assume CloudFormation won't re-order the list in any way.
However, there is a nodegroup stack part, that currently depends on cfg.VPC.Subnets to be fully populated, so we might just need to satisfy the needs of nodegroup creation here, for which exporting a list may suffice just fine.
At the moment we assume order of subnets we get in a list is the same as the order of AZs. This is indeed the case most of the time with
eksctl create cluster
, as the lists are the same.However, if we want to create a nodegroup separately, that assumption is most likely to break.
I believe we have to options here:
Broadly, the boundary is currently unclean between how we use stack exports and how we maintain state on eksctl side, we have a bit of mix going on at the moment and it's most likely to stay that way, as we do what's convenient most of the time, especially because some of CloudFormation facilities are harder to use then others and we only utilise some of them.
This area needs to be reviewed.
The text was updated successfully, but these errors were encountered: