API Reference

Packages

tensorstack.dev/v1beta1

Package v1beta1 contains API Schema definitions for the v1beta1 API group

Resource Types

AdditionalDiskConfig

Appears in:

FieldDescription
name string
bus DiskBusBus indicates the type of disk device to emulate. supported values: virtio, sata, scsi.
serial stringThe system-serial-number in SMBIOS
VolumeSource VolumeSourceVolumeSource represents the location and type of the mounted volume. Defaults to Disk, if no type is specified.

CPURequirements

CPU resources info, including cpu model and count.

Appears in:

FieldDescription
model stringvirt-handler detects cpus on nodes and add cpu-model.node.kubevirt.io/[model-name] labels to nodes. Set this filed to filter nodes by model. optional
cores QuantityCount of cpu.

FileSystemConfig

Appears in:

FieldDescription
name string
VolumeSource VolumeSourceVolumeSource represents the location and type of the mounted volume. Defaults to Disk, if no type is specified.

GPURequirements

GPU resources info, including device name and count.

Appears in:

FieldDescription
type stringkubevirt-gpu-device-plugin detects gpus on nodes and add extended resources to k8s cluster. Type is the name of gpu extended resource, it is usually related to gpu device name.
count integerCount of gpus in use.

Network

Appears in:

FieldDescription
tcp integer arrayThe ports exposed with TCP protocol.
udp integer arrayThe ports exposed with UDP protocol.
macAddress stringInterface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF.
dnsConfig PodDNSConfigSpecifies the DNS parameters of a VM. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.
dnsPolicy DNSPolicySet DNS policy for the VM. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.

PVCTemplate

Appears in:

FieldDescription
size QuantityPVC Size
volumeMode PersistentVolumeModevolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
accessModes PersistentVolumeAccessMode arrayAccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
storageClassName stringName of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1

ResourceRequirements

Resources allocated to VirtualMachine.

Appears in:

FieldDescription
gpu GPURequirementsGPU resources allocated to VirtualMachine. optional
cpu CPURequirementsCPU required by this VirtualMachine.
memory QuantityMemory required by this VirtualMachine.

RootDisk

Appears in:

FieldDescription
ephemeral booleanNot to record the data generated in the virtual machine to the root disk. Defaults to false.
pvc PVCTemplateCreate and bind a new pvc to DataVolume.
source DataVolumeSourceThe src of the data for the requested DataVolume.
bus DiskBusBus indicates the type of disk device to emulate. supported values: virtio, sata, scsi.

SchedulePolicy

SchedulePolicy specifies the preferred scheduler responsible for handling resource allocation requests.

Appears in:

FieldDescription
t9kScheduler T9kScheduler

Storage

Appears in:

FieldDescription
root RootDiskRoot disk.
additionalDisks AdditionalDiskConfig arrayAttach a volume as a disk to the VM.
filesystems FileSystemConfig arrayFilesystems describes filesystem which is connected to the VM.

T9kScheduler

Appears in:

FieldDescription
queue stringName of the queue to use with the T9kScheduler.

VMRef

Appears in:

FieldDescription
name string

VirtualServer

VirtualServer is the Schema for the virtualservers API

Appears in:

FieldDescription
apiVersion stringtensorstack.dev/v1beta1
kind stringVirtualServer
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec VirtualServerSpec
status VirtualServerStatus

VirtualServerCondition

VirtualServerCondition defines the observed condition of VirtualServer.

Appears in:

FieldDescription
type VirtualServerConditionTypeType is the type of the condition.
status ConditionStatusStatus is the status of the condition type. Possible values of are `True
message stringMessage is a human-readable message for the reason of the status.
reason stringUnique, one-word, CamelCase reason for the vm's last transition.
lastTransitionTime TimeLastTransitionTime is the last time the status was changed.

VirtualServerConditionType

Underlying type: string

VirtualServerConditionType defines all possible types of VirtualServerCondition. Can be one of: DataImported, Ready, Failure or Paused.

Appears in:

VirtualServerList

VirtualServerList contains a list of VirtualServer

FieldDescription
apiVersion stringtensorstack.dev/v1beta1
kind stringVirtualServerList
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items VirtualServer array

VirtualServerSpec

VirtualServerSpec defines the desired state of VirtualServer

Appears in:

FieldDescription
resources ResourceRequirementsCompute Resources required by this VM.
storage StorageDisks and filesystems attached to the VM.
firmware FirmwareFirmware.
network NetworkVM network config.
runStrategy VirtualMachineRunStrategyRunning state indicates the requested running state of the VirtualMachineInstance
useVirtioTransitional booleanFall back to legacy virtio 0.9 support if virtio bus is selected on devices. This is helpful for old machines like CentOS6 or RHEL6 which do not understand virtio_non_transitional (virtio 1.0).
scheduler SchedulePolicySpecifies the preferred scheduler responsible for handling resource allocation requests.
cloudInit stringCloudInit represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html

VirtualServerStatus

VirtualServerStatus defines the observed state of VirtualServer

Appears in:

FieldDescription
conditions VirtualServerCondition arrayThe latest available observations of a VirtualServer's current state.
printableStatus VirtualMachinePrintableStatusPrintableStatus is a human readable, high-level representation of the status of the virtual machine
vm VMRefRefers to VirtualMachine created by this VirtualServer.
runStrategy VirtualMachineRunStrategyRunning state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running