Documentation
¶
Overview ¶
Package vsphere contains contains API Schema definitions for vSphere clusters. +k8s:deepcopy-gen=package,register
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MachinePool ¶
type MachinePool struct {
// NumCPUs is the total number of virtual processor cores to assign a vm.
NumCPUs int32 `json:"cpus"`
// NumCoresPerSocket is the number of cores per socket in a vm. The number
// of vCPUs on the vm will be NumCPUs/NumCoresPerSocket.
NumCoresPerSocket int32 `json:"coresPerSocket"`
// Memory is the size of a VM's memory in MB.
MemoryMiB int64 `json:"memoryMB"`
// OSDisk defines the storage for instance.
OSDisk `json:"osDisk"`
}
MachinePool stores the configuration for a machine pool installed on vSphere.
type OSDisk ¶
type OSDisk struct {
// DiskSizeGB defines the size of disk in GB.
DiskSizeGB int32 `json:"diskSizeGB"`
}
OSDisk defines the disk for a virtual machine.
type Platform ¶
type Platform struct {
// VCenter is the domain name or IP address of the vCenter.
VCenter string `json:"vCenter"`
// CredentialsSecretRef refers to a secret that contains the vSphere account access
// credentials: GOVC_USERNAME, GOVC_PASSWORD fields.
CredentialsSecretRef corev1.LocalObjectReference `json:"credentialsSecretRef"`
// CertificatesSecretRef refers to a secret that contains the vSphere CA certificates
// necessary for communicating with the VCenter.
CertificatesSecretRef corev1.LocalObjectReference `json:"certificatesSecretRef"`
// Datacenter is the name of the datacenter to use in the vCenter.
Datacenter string `json:"datacenter"`
// DefaultDatastore is the default datastore to use for provisioning volumes.
DefaultDatastore string `json:"defaultDatastore"`
// Folder is the name of the folder that will be used and/or created for
// virtual machines.
Folder string `json:"folder,omitempty"`
// Cluster is the name of the cluster virtual machines will be cloned into.
Cluster string `json:"cluster,omitempty"`
// Network specifies the name of the network to be used by the cluster.
Network string `json:"network,omitempty"`
}
Platform stores any global configuration used for vSphere platforms.
Click to show internal directories.
Click to hide internal directories.