Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to upgrade nodepool kubernetes version #966

Merged
merged 2 commits into from
Sep 9, 2022
Merged

Add ability to upgrade nodepool kubernetes version #966

merged 2 commits into from
Sep 9, 2022

Conversation

dhageman
Copy link
Contributor

@dhageman dhageman commented Aug 30, 2022

SUMMARY

The current version of azure_rm_aks.py can only upgrade the control plane on an Azure Kubernetes Service. This PR adds a parameter under the node pool profile called "orchestrator_version" that can be used to activate a kubernetes upgrade for the node pool.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

azure_rm_aks.py

ADDITIONAL INFORMATION

The control plane is upgraded using the kubernetes_version on the module.
The node pool is upgraded using orchestrator_version in the agent_pool_profiles.

Co-authored-by: Fred-sun <37327967+Fred-sun@users.noreply.github.com>
@Fred-sun
Copy link
Collaborator

@dhageman I tested this parameter, and it seems that this "orchestrator_version" is consistent with"kubernetes_version". Would you like to try it?
Thank you very much!

@dhageman
Copy link
Contributor Author

@Fred-sun - Setting a new value for kubernetes_version will only upgrade the control plane of a cluster. The node pool supporting the cluster will not be upgraded at all which is why this modification is needed. I imagine that most people will just set both to be the same version when doing upgrades but the flexibility of doing upgrades individually may be nice for some.

@xuzhang3
Copy link
Collaborator

xuzhang3 commented Sep 9, 2022

@dhageman LGTM 🚢

@xuzhang3 xuzhang3 merged commit 83f1895 into ansible-collections:dev Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants