vmss

package
v5.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCloudConfig

func RenderCloudConfig(blobURL string, encryptionKey string, initialVector string, instanceRole string) (string, error)

Types

type Node

type Node struct {
	// OSImage is the vm OS image object.
	OSImage NodeOSImage `json:"osImage" yaml:"osImage"`
	// VMSize is the master vm size (e.g. Standard_A1)
	VMSize string `json:"vmSize" yaml:"vmSize"`
	// Size of the Disk mounted in /var/lib/docker
	DockerVolumeSizeGB int `json:"dockerVolumeSizeGB" yaml:"dockerVolumeSizeGB"`
	// Size of the Disk mounted in /var/lib/kubelet
	KubeletVolumeSizeGB int `json:"kubeletVolumeSizeGB" yaml:"kubeletVolumeSizeGB"`
}

func GetMasterNodesConfiguration

func GetMasterNodesConfiguration(obj providerv1alpha1.AzureConfig, distroVersion string) []Node

func GetWorkerNodesConfiguration

func GetWorkerNodesConfiguration(obj providerv1alpha1.AzureConfig, distroVersion string) []Node

func NewNode

func NewNode(distroVersion string, vmSize string, dockerVolumeSizeGB int, kubeletVolumeSizeGB int) Node

type NodeOSImage

type NodeOSImage struct {
	// Offer is the image offered by the publisher (e.g. CoreOS).
	Offer string `json:"offer" yaml:"offer"`
	// Publisher is the image publisher (e.g GiantSwarm).
	Publisher string `json:"publisher" yaml:"publisher"`
	// SKU is the image SKU (e.g. Alpha).
	SKU string `json:"sku" yaml:"sku"`
	// Version is the image version (e.g. 1465.7.0).
	Version string `json:"version" yaml:"version"`
}

nodeOSImage provides OS information for Microsoft.Compute/virtualMachines templates. Official documentation for can be found here https://docs.microsoft.com/en-us/azure/templates/microsoft.compute/virtualmachines#ImageReference.

type SmallCloudconfigConfig

type SmallCloudconfigConfig struct {
	BlobURL       string
	CertsFiles    []certs.File
	EncryptionKey string
	InitialVector string
	InstanceRole  string
}

SmallCloudconfigConfig represents the data structure required for executing the small cloudconfig template.

Jump to

Keyboard shortcuts

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