Documentation ¶
Index ¶
Constants ¶
View Source
const ( // InstanceGroupLabelSpotPercentage is the metadata label used on the // instance group to specify the percentage of Spot instances that // should spin up from the target capacity. InstanceGroupLabelSpotPercentage = "spotinst.io/spot-percentage" // InstanceGroupLabelOrientation is the metadata label used on the // instance group to specify which orientation should be used. InstanceGroupLabelOrientation = "spotinst.io/orientation" // InstanceGroupLabelUtilizeReservedInstances is the metadata label used // on the instance group to specify whether reserved instances should be // utilized. InstanceGroupLabelUtilizeReservedInstances = "spotinst.io/utilize-reserved-instances" // InstanceGroupLabelFallbackToOnDemand is the metadata label used on the // instance group to specify whether fallback to on-demand instances should // be enabled. InstanceGroupLabelFallbackToOnDemand = "spotinst.io/fallback-to-ondemand" // InstanceGroupLabelHealthCheckType is the metadata label used on the // instance group to specify the type of the health check that should be used. InstanceGroupLabelHealthCheckType = "spotinst.io/health-check-type" // InstanceGroupLabelOceanDefaultLaunchSpec is the metadata label used on the // instance group to specify whether to use the InstanceGroup's spec as the default // Launch Spec for the Ocean cluster. InstanceGroupLabelOceanDefaultLaunchSpec = "spotinst.io/ocean-default-launchspec" // InstanceGroupLabelAutoScalerDisabled is the metadata label used on the // instance group to specify whether the auto scaler should be enabled. InstanceGroupLabelAutoScalerDisabled = "spotinst.io/autoscaler-disabled" // InstanceGroupLabelAutoScalerDefaultNodeLabels is the metadata label used on the // instance group to specify whether default node labels should be set for // the auto scaler. InstanceGroupLabelAutoScalerDefaultNodeLabels = "spotinst.io/autoscaler-default-node-labels" // InstanceGroupLabelAutoScalerHeadroom* are the metadata labels used on the // instance group to specify the headroom configuration used by the auto scaler. InstanceGroupLabelAutoScalerHeadroomCPUPerUnit = "spotinst.io/autoscaler-headroom-cpu-per-unit" InstanceGroupLabelAutoScalerHeadroomGPUPerUnit = "spotinst.io/autoscaler-headroom-gpu-per-unit" InstanceGroupLabelAutoScalerHeadroomMemPerUnit = "spotinst.io/autoscaler-headroom-mem-per-unit" InstanceGroupLabelAutoScalerHeadroomNumOfUnits = "spotinst.io/autoscaler-headroom-num-of-units" // InstanceGroupLabelAutoScalerScaleDown* are the metadata labels used on the // instance group to specify the scale down configuration used by the auto scaler. InstanceGroupLabelAutoScalerScaleDownMaxPercentage = "spotinst.io/autoscaler-scale-down-max-percentage" InstanceGroupLabelAutoScalerScaleDownEvaluationPeriods = "spotinst.io/autoscaler-scale-down-evaluation-periods" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceGroupModelBuilder ¶
type InstanceGroupModelBuilder struct { *awsmodel.AWSModelContext BootstrapScript *model.BootstrapScript Lifecycle *fi.Lifecycle SecurityLifecycle *fi.Lifecycle }
InstanceGroupModelBuilder configures InstanceGroup objects
func (*InstanceGroupModelBuilder) Build ¶
func (b *InstanceGroupModelBuilder) Build(c *fi.ModelBuilderContext) error
Click to show internal directories.
Click to hide internal directories.