Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure: Add functionality to change Azure Machine Disk Types
Azure disk types for the master and worker nodes is by default set to Premium SSD(Premium_LRS) setting. Made the changes to add the disktype of the master and worker nodes in the install config by adding an extra field in MachinePool DiskType to the OSDisk struct which is part of the DefaultMachinePlatform attribute in the Azure Platform type. To change the disk type, the install config must be changed by adding the diskType under platform->Azure property by adding the defaultMachinePlatform->osDisk->diskType and setting the value to one of the following, Premium_LRS and StandardSSD_LRS. For custom Azure modifications to the disk types, the worker nodes can have an additional disk type Standard_LRS. HDD type disks for master machines are not recommended so it cannot be added to the default values or to the custom modifications for the master. Currently, the UltraSSD_LRS is under Azure preview and it is only available in three regions and hence is currently disabled(commented).
- Loading branch information
Showing
10 changed files
with
173 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 30 additions & 14 deletions
44
pkg/asset/installconfig/azure/mock/azureclient_generated.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters