Class MachinePool

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<MachinePoolBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class MachinePool
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<MachinePoolBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    MachinePool stores the configuration for a machine pool installed on GCP.
    See Also:
    Serialized Form
    • Constructor Detail

      • MachinePool

        public MachinePool()
        No args constructor for use in serialization
    • Method Detail

      • getNetworkProjectID

        public String getNetworkProjectID()
        NetworkProjectID specifies which project the network and subnets exist in when they are not in the main ProjectID.
      • setNetworkProjectID

        public void setNetworkProjectID​(String networkProjectID)
        NetworkProjectID specifies which project the network and subnets exist in when they are not in the main ProjectID.
      • getOnHostMaintenance

        public String getOnHostMaintenance()
        OnHostMaintenance determines the behavior when a maintenance event occurs that might cause the instance to reboot. This is required to be set to "Terminate" if you want to provision machine with attached GPUs. Otherwise, allowed values are "Migrate" and "Terminate". If omitted, the platform chooses a default, which is subject to change over time, currently that default is "Migrate".
      • setOnHostMaintenance

        public void setOnHostMaintenance​(String onHostMaintenance)
        OnHostMaintenance determines the behavior when a maintenance event occurs that might cause the instance to reboot. This is required to be set to "Terminate" if you want to provision machine with attached GPUs. Otherwise, allowed values are "Migrate" and "Terminate". If omitted, the platform chooses a default, which is subject to change over time, currently that default is "Migrate".
      • getOsDisk

        public OSDisk getOsDisk()
        MachinePool stores the configuration for a machine pool installed on GCP.
      • setOsDisk

        public void setOsDisk​(OSDisk osDisk)
        MachinePool stores the configuration for a machine pool installed on GCP.
      • getSecureBoot

        public String getSecureBoot()
        SecureBoot Defines whether the instance should have secure boot enabled. Verifies the digital signature of all boot components, and halts the boot process if signature verification fails. If omitted, the platform chooses a default, which is subject to change over time. Currently that default is "Disabled".
      • setSecureBoot

        public void setSecureBoot​(String secureBoot)
        SecureBoot Defines whether the instance should have secure boot enabled. Verifies the digital signature of all boot components, and halts the boot process if signature verification fails. If omitted, the platform chooses a default, which is subject to change over time. Currently that default is "Disabled".
      • getServiceAccount

        public String getServiceAccount()
        ServiceAccount is the email of a gcp service account to be attached to worker nodes in order to provide the permissions required by the cloud provider. For the default worker MachinePool, it is the user's responsibility to match this to the value provided in the install-config.
      • setServiceAccount

        public void setServiceAccount​(String serviceAccount)
        ServiceAccount is the email of a gcp service account to be attached to worker nodes in order to provide the permissions required by the cloud provider. For the default worker MachinePool, it is the user's responsibility to match this to the value provided in the install-config.
      • getType

        public String getType()
        InstanceType defines the GCP instance type. eg. n1-standard-4
      • setType

        public void setType​(String type)
        InstanceType defines the GCP instance type. eg. n1-standard-4
      • getUserTags

        public List<UserTag> getUserTags()
        userTags has additional keys and values that we will add as tags to the providerSpec of MachineSets that we creates on GCP. Tag key and tag value should be the shortnames of the tag key and tag value resource. Consumer is responsible for using this only for spokes where custom tags are supported.
      • setUserTags

        public void setUserTags​(List<UserTag> userTags)
        userTags has additional keys and values that we will add as tags to the providerSpec of MachineSets that we creates on GCP. Tag key and tag value should be the shortnames of the tag key and tag value resource. Consumer is responsible for using this only for spokes where custom tags are supported.
      • getZones

        public List<String> getZones()
        Zones is list of availability zones that can be used.
      • setZones

        public void setZones​(List<String> zones)
        Zones is list of availability zones that can be used.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)