https://pulumi.com logo
#azure
Title
# azure
r

rich-airplane-20830

06/01/2022, 1:06 PM
Hi, I created an aks cluster with two nodepools (used pulumi_azure_native for it). It is only possible to set the kubernetes version on cluster level. If I change the kubernetes version to upgrade the cluster, the configuration kubernetes version is updated to the new version, but the nodepools are not upgraded. Can someone tell me, how I upgrade the kubernetes version of a nodepool by pulumi?
l

little-apartment-30401

06/01/2022, 1:16 PM
ha I’m dealing with this right now
My code is a mess so I can’t send you a snippet, but look up
ManagedClusterAgentPoolProfileArgs
There’s an
OrchestratorVersion
in there you have to set
afaict, though, you can’t modify
maxSurge
settings via Pulumi, which is causing me no end of headaches
r

rich-airplane-20830

06/01/2022, 1:19 PM
ah thank you. Missed the orchestrator_version. Was looking for kubernetes_version like in the cluster
l

little-apartment-30401

06/01/2022, 1:19 PM
Yeah, I missed it too!
r

rich-airplane-20830

06/01/2022, 1:21 PM
thanks for the info with maxSurge. Hopefully it works with the default for me.
if you are also dealing with this stuff right now, do you use the auto_upgrade_profile option?
l

little-apartment-30401

06/01/2022, 1:25 PM
No, I’m a bit scared of letting azure do these updates for me atm. I want to get there but I want to prove out the upgrade process a bit first tho
Which is why I’m trying to get it working smoothly in Pulumi so we aren’t doing it through the portal
r

rich-airplane-20830

06/01/2022, 1:26 PM
we have also automated this stuff, so I tried this parameter in pulumi just to update the node_images and not the kubernetes_versions
8 Views