Class MachinePool
- java.lang.Object
-
- io.fabric8.openshift.api.model.hive.gcp.v1.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MachinePoolBuilderedit()Map<String,Object>getAdditionalProperties()StringgetNetworkProjectID()NetworkProjectID specifies which project the network and subnets exist in when they are not in the main ProjectID.StringgetOnHostMaintenance()OnHostMaintenance determines the behavior when a maintenance event occurs that might cause the instance to reboot.OSDiskgetOsDisk()MachinePool stores the configuration for a machine pool installed on GCP.StringgetSecureBoot()SecureBoot Defines whether the instance should have secure boot enabled.StringgetServiceAccount()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.StringgetType()InstanceType defines the GCP instance type. eg. n1-standard-4List<UserTag>getUserTags()userTags has additional keys and values that we will add as tags to the providerSpec of MachineSets that we creates on GCP.List<String>getZones()Zones is list of availability zones that can be used.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetNetworkProjectID(String networkProjectID)NetworkProjectID specifies which project the network and subnets exist in when they are not in the main ProjectID.voidsetOnHostMaintenance(String onHostMaintenance)OnHostMaintenance determines the behavior when a maintenance event occurs that might cause the instance to reboot.voidsetOsDisk(OSDisk osDisk)MachinePool stores the configuration for a machine pool installed on GCP.voidsetSecureBoot(String secureBoot)SecureBoot Defines whether the instance should have secure boot enabled.voidsetServiceAccount(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.voidsetType(String type)InstanceType defines the GCP instance type. eg. n1-standard-4voidsetUserTags(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.voidsetZones(List<String> zones)Zones is list of availability zones that can be used.MachinePoolBuildertoBuilder()
-
-
-
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.
-
setZones
public void setZones(List<String> zones)
Zones is list of availability zones that can be used.
-
edit
public MachinePoolBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<MachinePoolBuilder>
-
toBuilder
public MachinePoolBuilder toBuilder()
-
-