vmss

package
v4.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 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 {
	// AdminUsername is the vm administrator username
	AdminUsername string `json:"adminUsername" yaml:"adminUsername"`
	//  AdminSSHKeyData is the vm administrator ssh public key
	AdminSSHKeyData string `json:"adminSSHKeyData" yaml:"adminSSHKeyData"`
	// 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(adminUsername string, adminSSHKeyData string, 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.Files
	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