green-analyst-20434
01/15/2025, 4:28 AMUpdate the node group in place. Pulumi does this by first creating the new replacement nodes and then shutting down the old ones which will move pods to the new nodes forcibly. This is the default behavior when node groups are updated.
It seems does not happen to me. The preview shows the strategy is replace
instead of update
-> entire nodeGroup will be deleted first, then creating new nodeGroup, instead of update node by node.
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:stack::eks::pulumi:pulumi:Stack::stack]
--aws:eks/nodeGroup:NodeGroup: (delete-replaced)
[id=stack:test-upgrade]
[urn=urn:pulumi:stack::eks::aws:eks/nodeGroup:NodeGroup::test-upgrade]
+-aws:eks/nodeGroup:NodeGroup: (replace)
[id=stack:test-upgrade]
[urn=urn:pulumi:stack::eks::aws:eks/nodeGroup:NodeGroup::test-upgrade]
~ amiType: "AL2_x86_64" => "AL2023_x86_64_STANDARD"
++aws:eks/nodeGroup:NodeGroup: (create-replacement)
[id=stack:test-upgrade]
[urn=urn:pulumi:stack::eks::aws:eks/nodeGroup:NodeGroup::test-upgrade]
~ amiType: "AL2_x86_64" => "AL2023_x86_64_STANDARD"
Am I missing something?quick-house-41860
01/15/2025, 10:56 AMkubectl drain
or eksctl delete nodegroup
).stale-tomato-37875
01/15/2025, 10:59 PMgreen-analyst-20434
01/16/2025, 3:38 AMaws.eks.NodeGroup
of Pulumi AWS classic and thought my nodeGroup is self-managed, but it's wrong.
In this case, the node group shouldn't get deleted first before recreation, instead the new node group would get created, then the old one would get deleted.
-> It actually did that and not desirable to me.
1. -- └─ aws:eks:NodeGroup test-upgrade deleting original (3s)..
2. ++ └─ aws:eks:NodeGroup test-upgrade creating replacement (24s) [diff: ~amiType]
Drain the old nodeGroup is fine for me, as long as all the pods is scheduled on new nodeGroup. My purpose is no downtime in upgrade process.quick-house-41860
01/16/2025, 7:33 AMdeleteBeforeReplace
resource option turned on or the name
input property set? In this case the provider will delete the node group before recreating it.
Please be careful with that doc if you're using aws classic. Many of the same principles apply there as well (pulumi-eks uses pulumi-aws under the hood), but it's an opinionated abstraction so you could've configured things differently than how the doc is assuming it.green-analyst-20434
01/16/2025, 7:48 AMdeleteBeforeReplace
I believe not, if it's not default option.
2. What do you mean by name
?
new NodeGroup(name: string, args: NodeGroupArgs, opts?: CustomResourceOptions);
quick-house-41860
01/16/2025, 8:05 AMnodeGroupName
input property in this casegreen-analyst-20434
01/16/2025, 8:10 AMquick-house-41860
01/16/2025, 8:12 AMquick-house-41860
01/16/2025, 8:14 AMgreen-analyst-20434
01/16/2025, 8:16 AM