defaults

package
v1.4.21-pre Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2025 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// AzurestackMinimumDiskSize is the minimum disk size value for azurestack.
	AzurestackMinimumDiskSize int32 = 128
	// AzurestackMaximumDiskSize is the maximum disk size value for azurestack.
	AzurestackMaximumDiskSize int32 = 1023
)

Functions

func Apply

func Apply(defaultMachinePlatform, machinePool *azure.MachinePool)

Apply sets values from the default machine platform to the machinepool.

func ComputeInstanceType

func ComputeInstanceType(cloud azure.CloudEnvironment, region string, arch types.Architecture) string

ComputeInstanceType sets the defaults for compute instances. Minimum requirements are 2 CPU's, 8GiB of ram, and 120GiB storage. D4s v3 gives us 4 CPU's, 16GiB ram and 32GiB of temporary storage DS3_v2 gives us 4 CPUs, 14GiB ram, and 28GiB of temporary storage.

func ControlPlaneInstanceType

func ControlPlaneInstanceType(cloud azure.CloudEnvironment, region string, arch types.Architecture) string

ControlPlaneInstanceType sets the defaults for control plane instances. Minimum requirements are 4 CPU's, 16GiB of ram, and 120GiB storage. D8s_v3 gives us 8 CPU's, 32GiB ram and 64GiB of temporary storage This extra bump is done to prevent etcd from overloading DS4_v2 gives us 8 CPUs, 28GiB ram, and 56GiB of temporary storage.

func SetPlatformDefaults

func SetPlatformDefaults(p *azure.Platform)

SetPlatformDefaults sets the defaults for the platform.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL