VSphereVM [infrastructure.cluster.x-k8s.io/v1beta1]
VSphereVM 是底层 provider 资源,用于表示在 vCenter 中、为 VSphereMachine 提供支撑的虚拟机。它由 provider controller 创建,而不是由最终用户创建。运维人员在排查克隆、IP 分配或电源状态问题时,会直接检查它。
- 描述
- VSphereVM is the Schema for the vspherevms API.
- 类型
object
规格
.spec
- 描述
- VSphereVMSpec defines the desired state of VSphereVM.
- 类型
object- 必填
networktemplate
.spec.additionalDisksGiB
- 描述
- AdditionalDisksGiB holds the sizes of additional disks of the virtual machine, in GiB Defaults to the eponymous property value in the template from which the virtual machine is cloned.
- 类型
array
.spec.additionalDisksGiB[]
- 类型
integer
.spec.bootstrapRef
- 描述
- BootstrapRef is a reference to a bootstrap provider-specific resource that holds configuration details. This field is optional in case no bootstrap data is required to create a VM.
- 类型
object
.spec.customVMXKeys
- 描述
- CustomVMXKeys is a dictionary of advanced VMX options that can be set on VM Defaults to empty map
- 类型
object
.spec.dataDisks
- 描述
- DataDisks are additional disks to add to the VM that are not part of the VM's OVA template.
- 类型
array
.spec.dataDisks[]
- 描述
- VSphereDisk is an additional disk to add to the VM that is not part of the VM OVA template.
- 类型
object- 必填
namesizeGiB
.spec.network
- 描述
- Network is the network configuration for this machine's VM.
- 类型
object- 必填
devices
.spec.network.devices
- 描述
- Devices is the list of network devices used by the virtual machine.
- 类型
array
.spec.network.devices[]
- 描述
- NetworkDeviceSpec defines the network configuration for a virtual machine's network device.
- 类型
object- 必填
networkName
.spec.network.devices[].addressesFromPools
- 描述
- AddressesFromPools is a list of IPAddressPools that should be assigned to IPAddressClaims. The machine's cloud-init metadata will be populated with IPAddresses fulfilled by an IPAM provider.
- 类型
array
.spec.network.devices[].addressesFromPools[]
- 描述
- TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.
- 类型
object- 必填
kindname
.spec.network.devices[].dhcp4Overrides
- 描述
- DHCP4Overrides allows for the control over several DHCP behaviors. Overrides will only be applied when the corresponding DHCP flag is set. Only configured values will be sent, omitted values will default to distribution defaults. Dependent on support in the network stack for your distribution. For more information see the netplan reference (https://netplan.io/reference#dhcp-overrides)
- 类型
object
.spec.network.devices[].dhcp6Overrides
- 描述
- DHCP6Overrides allows for the control over several DHCP behaviors. Overrides will only be applied when the corresponding DHCP flag is set. Only configured values will be sent, omitted values will default to distribution defaults. Dependent on support in the network stack for your distribution. For more information see the netplan reference (https://netplan.io/reference#dhcp-overrides)
- 类型
object
.spec.network.devices[].ipAddrs
- 描述
- IPAddrs is a list of one or more IPv4 and/or IPv6 addresses to assign to this device. IP addresses must also specify the segment length in CIDR notation. Required when DHCP4, DHCP6 and SkipIPAllocation are false.
- 类型
array
.spec.network.devices[].ipAddrs[]
- 类型
string
.spec.network.devices[].nameservers
- 描述
- Nameservers is a list of IPv4 and/or IPv6 addresses used as DNS nameservers. Please note that Linux allows only three nameservers (https://linux.die.net/man/5/resolv.conf).
- 类型
array
.spec.network.devices[].nameservers[]
- 类型
string
.spec.network.devices[].routes
- 描述
- Routes is a list of optional, static routes applied to the device.
- 类型
array
.spec.network.devices[].routes[]
- 描述
- NetworkRouteSpec defines a static network route.
- 类型
object- 必填
metrictovia
.spec.network.devices[].searchDomains
- 描述
- SearchDomains is a list of search domains used when resolving IP addresses with DNS.
- 类型
array
.spec.network.devices[].searchDomains[]
- 类型
string
.spec.network.routes
- 描述
- Routes is a list of optional, static routes applied to the virtual machine.
- 类型
array
.spec.network.routes[]
- 描述
- NetworkRouteSpec defines a static network route.
- 类型
object- 必填
metrictovia
.spec.pciDevices
- 描述
- PciDevices is the list of pci devices used by the virtual machine.
- 类型
array
.spec.pciDevices[]
- 描述
- PCIDeviceSpec defines virtual machine's PCI configuration.
- 类型
object
.spec.tagIDs
- 描述
- TagIDs is an optional set of tags to add to an instance. Specified tagIDs must use URN-notation instead of display names.
- 类型
array
.spec.tagIDs[]
- 类型
string
.status
- 描述
- VSphereVMStatus defines the observed state of VSphereVM.
- 类型
object
.status.addresses
- 描述
- Addresses is a list of the VM's IP addresses. This field is required at runtime for other controllers that read this CRD as unstructured data.
- 类型
array
.status.addresses[]
- 类型
string
.status.conditions
- 描述
- Conditions defines current service state of the VSphereVM.
- 类型
array
.status.conditions[]
- 描述
- Condition defines an observation of a Cluster API resource operational state.
- 类型
object- 必填
lastTransitionTimestatustype
.status.network
- 描述
- Network returns the network status for each of the machine's configured network interfaces.
- 类型
array
.status.network[]
- 描述
- NetworkStatus provides information about one of a VM's networks.
- 类型
object- 必填
macAddr
.status.network[].ipAddrs
- 描述
- IPAddrs is one or more IP addresses reported by vm-tools.
- 类型
array
.status.network[].ipAddrs[]
- 类型
string
.status.v1beta2
- 描述
- v1beta2 groups all the fields that will be added or modified in VSphereVM's status with the V1Beta2 version.
- 类型
object
.status.v1beta2.conditions
- 描述
- conditions represents the observations of a VSphereVM's current state. Known condition types are Ready, VirtualMachineProvisioned, VCenterAvailable and IPAddressClaimsFulfilled, GuestSoftPowerOffSucceeded, PCIDevicesDetached and Paused.
- 类型
array
.status.v1beta2.conditions[]
- 描述
- Condition contains details for one aspect of the current state of this API Resource.
- 类型
object- 必填
lastTransitionTimemessagereasonstatustype
API 端点
可用的 API 端点如下:
/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/vspherevmsDELETE: delete collection of VSphereVMGET: list objects of kind VSphereVMPOST: create a new VSphereVM
/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/vspherevms/{name}DELETE: delete the specified VSphereVMGET: read the specified VSphereVMPATCH: partially update the specified VSphereVMPUT: replace the specified VSphereVM
/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/vspherevms/{name}/statusGET: read status of the specified VSphereVMPATCH: partially update status of the specified VSphereVMPUT: replace status of the specified VSphereVM
/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/vspherevms
- HTTP 方法
DELETE- 描述
- delete collection of VSphereVM
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind VSphereVM
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new VSphereVM
- 查询参数
- 请求体参数
- HTTP 响应
/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/vspherevms/{name}
- HTTP 方法
DELETE- 描述
- delete the specified VSphereVM
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified VSphereVM
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified VSphereVM
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified VSphereVM
- 查询参数
- 请求体参数
- HTTP 响应
/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/vspherevms/{name}/status
- HTTP 方法
GET- 描述
- read status of the specified VSphereVM
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update status of the specified VSphereVM
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace status of the specified VSphereVM
- 查询参数
- 请求体参数
- HTTP 响应