Package kubevirt.io

Class 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.
    • Field Detail

      • dnsPolicy

        private java.lang.String dnsPolicy
      • evictionStrategy

        private java.lang.String evictionStrategy
      • hostname

        private java.lang.String hostname
      • livenessProbe

        private V1Probe livenessProbe
      • networks

        private java.util.List<V1Network> networks
      • nodeSelector

        private java.lang.Object nodeSelector
      • readinessProbe

        private V1Probe readinessProbe
      • subdomain

        private java.lang.String subdomain
      • terminationGracePeriodSeconds

        private java.lang.Long terminationGracePeriodSeconds
      • tolerations

        private java.util.List<V1Toleration> tolerations
      • volumes

        private java.util.List<V1Volume> volumes
    • Constructor Detail

      • V1VirtualMachineInstanceSpec

        public V1VirtualMachineInstanceSpec()
    • Method Detail

      • getAffinity

        public V1Affinity getAffinity()
        If affinity is specifies, obey all the affinity rules
        Returns:
        affinity
      • setAffinity

        public void setAffinity​(V1Affinity affinity)
      • 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)
      • 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)
      • getDomain

        public V1DomainSpec getDomain()
        Specification of the desired behavior of the VirtualMachineInstance on the host.
        Returns:
        domain
      • setDomain

        public void setDomain​(V1DomainSpec domain)
      • 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)
      • 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)
      • 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)
      • 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)
      • 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)
      • 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)
      • 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)
      • 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)
      • 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toIndentedString

        private java.lang.String toIndentedString​(java.lang.Object o)
        Convert the given object to string with each line indented by 4 spaces (except the first line).