Skip to content

Commit

Permalink
Disable AKS cluster recreation on agent profile change (#2774)
Browse files Browse the repository at this point in the history
Quick fix for #1808

Remove all manually curated agentPoolProfile properties from the
forceNewMap as we're currently also forcing recreation when adding or
removing agent pools. This method of replacing agent pools is documented
here:
https://learn.microsoft.com/en-us/azure/aks/use-system-pools?tabs=azure-cli#system-and-user-node-pools

If the current behaviour is still wanted (to replace the whole cluster
instead of updating the agent pools in place) then the replaceOnChanges
resource option can be used:
https://www.pulumi.com/docs/concepts/options/replaceonchanges/

This was originally introduced by
#1210 to fix
#959 but it didn't
take into account rotating agent pools within the existing cluster.
  • Loading branch information
danielrbradley authored Sep 26, 2023
1 parent 51d2a09 commit fa4bf30
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 78 deletions.
Loading

0 comments on commit fa4bf30

Please sign in to comment.