-
Notifications
You must be signed in to change notification settings - Fork 1.5k
machines: Set defaults for machine instance types #5841
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -115,7 +115,7 @@ func defaultAzureMachinePoolPlatform() azuretypes.MachinePool { | |
|
|
||
| func defaultGCPMachinePoolPlatform() gcptypes.MachinePool { | ||
| return gcptypes.MachinePool{ | ||
| InstanceType: "n1-standard-4", | ||
| InstanceType: "n2-standard-4", | ||
| OSDisk: gcptypes.OSDisk{ | ||
| DiskSizeGB: powerOfTwoRootVolumeSize, | ||
| DiskType: "pd-ssd", | ||
|
|
@@ -156,9 +156,9 @@ func defaultOvirtMachinePoolPlatform() ovirttypes.MachinePool { | |
|
|
||
| func defaultVSphereMachinePoolPlatform() vspheretypes.MachinePool { | ||
| return vspheretypes.MachinePool{ | ||
| NumCPUs: 2, | ||
| NumCoresPerSocket: 2, | ||
| MemoryMiB: 8192, | ||
| NumCPUs: 4, | ||
| NumCoresPerSocket: 1, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Above it is 4
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 4 cpus and 1 cores per socket is right. I'll fix it
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed it to set masters to 4 vcpus and 4 numcores and workers to 4 vcpus and 1 numcores |
||
| MemoryMiB: 16384, | ||
| OSDisk: vspheretypes.OSDisk{ | ||
| DiskSizeGB: decimalRootVolumeSize, | ||
| }, | ||
|
|
@@ -185,11 +185,11 @@ func defaultNutanixMachinePoolPlatform() nutanixtypes.MachinePool { | |
| } | ||
| } | ||
|
|
||
| func awsDefaultWorkerMachineTypes(region string, arch types.Architecture) []string { | ||
| func awsDefaultMachineTypes(region string, arch types.Architecture) []string { | ||
| classes := awsdefaults.InstanceClasses(region, arch) | ||
| types := make([]string, len(classes)) | ||
| for i, c := range classes { | ||
| types[i] = fmt.Sprintf("%s.large", c) | ||
| types[i] = fmt.Sprintf("%s.xlarge", c) | ||
| } | ||
| return types | ||
| } | ||
|
|
@@ -341,10 +341,10 @@ func (w *Worker) Generate(dependencies asset.Parents) error { | |
| } | ||
| } | ||
| if mpool.InstanceType == "" { | ||
| mpool.InstanceType, err = aws.PreferredInstanceType(ctx, installConfig.AWS, awsDefaultWorkerMachineTypes(installConfig.Config.Platform.AWS.Region, installConfig.Config.ControlPlane.Architecture), mpool.Zones) | ||
| mpool.InstanceType, err = aws.PreferredInstanceType(ctx, installConfig.AWS, awsDefaultMachineTypes(installConfig.Config.Platform.AWS.Region, installConfig.Config.ControlPlane.Architecture), mpool.Zones) | ||
| if err != nil { | ||
| logrus.Warn(errors.Wrap(err, "failed to find default instance type")) | ||
| mpool.InstanceType = awsDefaultWorkerMachineTypes(installConfig.Config.Platform.AWS.Region, installConfig.Config.ControlPlane.Architecture)[0] | ||
| mpool.InstanceType = awsDefaultMachineTypes(installConfig.Config.Platform.AWS.Region, installConfig.Config.ControlPlane.Architecture)[0] | ||
| } | ||
| } | ||
| // if the list of zones is the default we need to try to filter the list in case there are some zones where the instance might not be available | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.