Package kubevirt.io
Class V1VirtualMachineInstanceSpec
java.lang.Object
kubevirt.io.V1VirtualMachineInstanceSpec
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
date="2019-11-10T14:44:51.030+02:00")
public class V1VirtualMachineInstanceSpec
extends Object
VirtualMachineInstanceSpec is a description of a VirtualMachineInstance.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate V1Affinityprivate V1PodDNSConfigprivate Stringprivate V1DomainSpecprivate Stringprivate Stringprivate V1Probeprivate Objectprivate V1Probeprivate Stringprivate Longprivate List<V1Toleration> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNetworksItem(V1Network networksItem) addTolerationsItem(V1Toleration tolerationsItem) addVolumesItem(V1Volume volumesItem) affinity(V1Affinity affinity) dnsConfig(V1PodDNSConfig dnsConfig) domain(V1DomainSpec domain) booleanevictionStrategy(String evictionStrategy) If affinity is specifies, obey all the affinity rulesSpecifies the DNS parameters of a pod.Set DNS policy for the pod.Specification of the desired behavior of the VirtualMachineInstance on the host.EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain.Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly.Periodic probe of VirtualMachineInstance liveness.List of networks that can be attached to a vm's virtual interface.NodeSelector is a selector which must be true for the vmi to fit on a node.Periodic probe of VirtualMachineInstance service readiness.If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\".Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated.If toleration is specified, obey all the toleration rules.List of volumes that can be mounted by disks belonging to the vmi.inthashCode()livenessProbe(V1Probe livenessProbe) nodeSelector(Object nodeSelector) readinessProbe(V1Probe readinessProbe) voidsetAffinity(V1Affinity affinity) voidsetDnsConfig(V1PodDNSConfig dnsConfig) voidsetDnsPolicy(String dnsPolicy) voidsetDomain(V1DomainSpec domain) voidsetEvictionStrategy(String evictionStrategy) voidsetHostname(String hostname) voidsetLivenessProbe(V1Probe livenessProbe) voidsetNetworks(List<V1Network> networks) voidsetNodeSelector(Object nodeSelector) voidsetReadinessProbe(V1Probe readinessProbe) voidsetSubdomain(String subdomain) voidsetTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) voidsetTolerations(List<V1Toleration> tolerations) voidsetVolumes(List<V1Volume> volumes) terminationGracePeriodSeconds(Long terminationGracePeriodSeconds) private StringConvert the given object to string with each line indented by 4 spaces (except the first line).tolerations(List<V1Toleration> tolerations) toString()
-
Field Details
-
affinity
-
dnsConfig
-
dnsPolicy
-
domain
-
evictionStrategy
-
hostname
-
livenessProbe
-
networks
-
nodeSelector
-
readinessProbe
-
subdomain
-
terminationGracePeriodSeconds
-
tolerations
-
volumes
-
-
Constructor Details
-
V1VirtualMachineInstanceSpec
public V1VirtualMachineInstanceSpec()
-
-
Method Details
-
affinity
-
getAffinity
If affinity is specifies, obey all the affinity rules- Returns:
- affinity
-
setAffinity
-
dnsConfig
-
getDnsConfig
Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. +optional- Returns:
- dnsConfig
-
setDnsConfig
-
dnsPolicy
-
getDnsPolicy
Set DNS policy for the pod. 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'. +optional- Returns:
- dnsPolicy
-
setDnsPolicy
-
domain
-
getDomain
Specification of the desired behavior of the VirtualMachineInstance on the host.- Returns:
- domain
-
setDomain
-
evictionStrategy
-
getEvictionStrategy
EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain.- Returns:
- evictionStrategy
-
setEvictionStrategy
-
hostname
-
getHostname
Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. +optional- Returns:
- hostname
-
setHostname
-
livenessProbe
-
getLivenessProbe
Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional- Returns:
- livenessProbe
-
setLivenessProbe
-
networks
-
addNetworksItem
-
getNetworks
List of networks that can be attached to a vm's virtual interface.- Returns:
- networks
-
setNetworks
-
nodeSelector
-
getNodeSelector
NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional- Returns:
- nodeSelector
-
setNodeSelector
-
readinessProbe
-
getReadinessProbe
Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional- Returns:
- readinessProbe
-
setReadinessProbe
-
subdomain
-
getSubdomain
If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname. +optional- Returns:
- subdomain
-
setSubdomain
-
terminationGracePeriodSeconds
public V1VirtualMachineInstanceSpec terminationGracePeriodSeconds(Long terminationGracePeriodSeconds) -
getTerminationGracePeriodSeconds
Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated.- Returns:
- terminationGracePeriodSeconds
-
setTerminationGracePeriodSeconds
-
tolerations
-
addTolerationsItem
-
getTolerations
If toleration is specified, obey all the toleration rules.- Returns:
- tolerations
-
setTolerations
-
volumes
-
addVolumesItem
-
getVolumes
List of volumes that can be mounted by disks belonging to the vmi.- Returns:
- volumes
-
setVolumes
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line).
-