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 java.lang.Object
VirtualMachineInstanceSpec is a description of a VirtualMachineInstance.
-
-
Constructor Summary
Constructors Constructor Description V1VirtualMachineInstanceSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V1VirtualMachineInstanceSpec
addNetworksItem(V1Network networksItem)
V1VirtualMachineInstanceSpec
addTolerationsItem(V1Toleration tolerationsItem)
V1VirtualMachineInstanceSpec
addVolumesItem(V1Volume volumesItem)
V1VirtualMachineInstanceSpec
affinity(V1Affinity affinity)
V1VirtualMachineInstanceSpec
dnsConfig(V1PodDNSConfig dnsConfig)
V1VirtualMachineInstanceSpec
dnsPolicy(java.lang.String dnsPolicy)
V1VirtualMachineInstanceSpec
domain(V1DomainSpec domain)
boolean
equals(java.lang.Object o)
V1VirtualMachineInstanceSpec
evictionStrategy(java.lang.String evictionStrategy)
V1Affinity
getAffinity()
If affinity is specifies, obey all the affinity rulesV1PodDNSConfig
getDnsConfig()
Specifies the DNS parameters of a pod.java.lang.String
getDnsPolicy()
Set DNS policy for the pod.V1DomainSpec
getDomain()
Specification of the desired behavior of the VirtualMachineInstance on the host.java.lang.String
getEvictionStrategy()
EvictionStrategy can be set to \"LiveMigrate\" if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain.java.lang.String
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.V1Probe
getLivenessProbe()
Periodic probe of VirtualMachineInstance liveness.java.util.List<V1Network>
getNetworks()
List of networks that can be attached to a vm's virtual interface.java.lang.Object
getNodeSelector()
NodeSelector is a selector which must be true for the vmi to fit on a node.V1Probe
getReadinessProbe()
Periodic probe of VirtualMachineInstance service readiness.java.lang.String
getSubdomain()
If specified, the fully qualified vmi hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\".java.lang.Long
getTerminationGracePeriodSeconds()
Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated.java.util.List<V1Toleration>
getTolerations()
If toleration is specified, obey all the toleration rules.java.util.List<V1Volume>
getVolumes()
List of volumes that can be mounted by disks belonging to the vmi.int
hashCode()
V1VirtualMachineInstanceSpec
hostname(java.lang.String hostname)
V1VirtualMachineInstanceSpec
livenessProbe(V1Probe livenessProbe)
V1VirtualMachineInstanceSpec
networks(java.util.List<V1Network> networks)
V1VirtualMachineInstanceSpec
nodeSelector(java.lang.Object nodeSelector)
V1VirtualMachineInstanceSpec
readinessProbe(V1Probe readinessProbe)
void
setAffinity(V1Affinity affinity)
void
setDnsConfig(V1PodDNSConfig dnsConfig)
void
setDnsPolicy(java.lang.String dnsPolicy)
void
setDomain(V1DomainSpec domain)
void
setEvictionStrategy(java.lang.String evictionStrategy)
void
setHostname(java.lang.String hostname)
void
setLivenessProbe(V1Probe livenessProbe)
void
setNetworks(java.util.List<V1Network> networks)
void
setNodeSelector(java.lang.Object nodeSelector)
void
setReadinessProbe(V1Probe readinessProbe)
void
setSubdomain(java.lang.String subdomain)
void
setTerminationGracePeriodSeconds(java.lang.Long terminationGracePeriodSeconds)
void
setTolerations(java.util.List<V1Toleration> tolerations)
void
setVolumes(java.util.List<V1Volume> volumes)
V1VirtualMachineInstanceSpec
subdomain(java.lang.String subdomain)
V1VirtualMachineInstanceSpec
terminationGracePeriodSeconds(java.lang.Long terminationGracePeriodSeconds)
V1VirtualMachineInstanceSpec
tolerations(java.util.List<V1Toleration> tolerations)
java.lang.String
toString()
V1VirtualMachineInstanceSpec
volumes(java.util.List<V1Volume> volumes)
-
-
-
Method Detail
-
affinity
public V1VirtualMachineInstanceSpec affinity(V1Affinity affinity)
-
getAffinity
public V1Affinity getAffinity()
If affinity is specifies, obey all the affinity rules- Returns:
- affinity
-
setAffinity
public void setAffinity(V1Affinity affinity)
-
dnsConfig
public V1VirtualMachineInstanceSpec dnsConfig(V1PodDNSConfig dnsConfig)
-
getDnsConfig
public V1PodDNSConfig 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
public void setDnsConfig(V1PodDNSConfig dnsConfig)
-
dnsPolicy
public V1VirtualMachineInstanceSpec dnsPolicy(java.lang.String dnsPolicy)
-
getDnsPolicy
public java.lang.String 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
public void setDnsPolicy(java.lang.String dnsPolicy)
-
domain
public V1VirtualMachineInstanceSpec domain(V1DomainSpec domain)
-
getDomain
public V1DomainSpec getDomain()
Specification of the desired behavior of the VirtualMachineInstance on the host.- Returns:
- domain
-
setDomain
public void setDomain(V1DomainSpec domain)
-
evictionStrategy
public V1VirtualMachineInstanceSpec evictionStrategy(java.lang.String evictionStrategy)
-
getEvictionStrategy
public java.lang.String 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
public void setEvictionStrategy(java.lang.String evictionStrategy)
-
hostname
public V1VirtualMachineInstanceSpec hostname(java.lang.String hostname)
-
getHostname
public java.lang.String 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
public void setHostname(java.lang.String hostname)
-
livenessProbe
public V1VirtualMachineInstanceSpec livenessProbe(V1Probe livenessProbe)
-
getLivenessProbe
public V1Probe 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
public void setLivenessProbe(V1Probe livenessProbe)
-
networks
public V1VirtualMachineInstanceSpec networks(java.util.List<V1Network> networks)
-
addNetworksItem
public V1VirtualMachineInstanceSpec addNetworksItem(V1Network networksItem)
-
getNetworks
public java.util.List<V1Network> getNetworks()
List of networks that can be attached to a vm's virtual interface.- Returns:
- networks
-
setNetworks
public void setNetworks(java.util.List<V1Network> networks)
-
nodeSelector
public V1VirtualMachineInstanceSpec nodeSelector(java.lang.Object nodeSelector)
-
getNodeSelector
public java.lang.Object 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
public void setNodeSelector(java.lang.Object nodeSelector)
-
readinessProbe
public V1VirtualMachineInstanceSpec readinessProbe(V1Probe readinessProbe)
-
getReadinessProbe
public V1Probe 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
public void setReadinessProbe(V1Probe readinessProbe)
-
subdomain
public V1VirtualMachineInstanceSpec subdomain(java.lang.String subdomain)
-
getSubdomain
public java.lang.String 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
public void setSubdomain(java.lang.String subdomain)
-
terminationGracePeriodSeconds
public V1VirtualMachineInstanceSpec terminationGracePeriodSeconds(java.lang.Long terminationGracePeriodSeconds)
-
getTerminationGracePeriodSeconds
public java.lang.Long getTerminationGracePeriodSeconds()
Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated.- Returns:
- terminationGracePeriodSeconds
-
setTerminationGracePeriodSeconds
public void setTerminationGracePeriodSeconds(java.lang.Long terminationGracePeriodSeconds)
-
tolerations
public V1VirtualMachineInstanceSpec tolerations(java.util.List<V1Toleration> tolerations)
-
addTolerationsItem
public V1VirtualMachineInstanceSpec addTolerationsItem(V1Toleration tolerationsItem)
-
getTolerations
public java.util.List<V1Toleration> getTolerations()
If toleration is specified, obey all the toleration rules.- Returns:
- tolerations
-
setTolerations
public void setTolerations(java.util.List<V1Toleration> tolerations)
-
volumes
public V1VirtualMachineInstanceSpec volumes(java.util.List<V1Volume> volumes)
-
addVolumesItem
public V1VirtualMachineInstanceSpec addVolumesItem(V1Volume volumesItem)
-
getVolumes
public java.util.List<V1Volume> getVolumes()
List of volumes that can be mounted by disks belonging to the vmi.- Returns:
- volumes
-
setVolumes
public void setVolumes(java.util.List<V1Volume> volumes)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-