Documentation ¶
Index ¶
Constants ¶
View Source
const ( // InstanceGroupLabelHybrid is the metadata label used on the instance group // to specify that the Spotinst provider should be used to upon creation. InstanceGroupLabelHybrid = "spotinst.io/hybrid" InstanceGroupLabelManaged = "spotinst.io/managed" // for backward compatibility // 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" // InstanceGroupLabelDrainingTimeout is the metadata label used on the // instance group to specify a period of time, in seconds, after a node // is marked for termination during which on running pods remains active. InstanceGroupLabelDrainingTimeout = "spotinst.io/draining-timeout" // InstanceGroupLabelGracePeriod is the metadata label used on the // instance group to specify a period of time, in seconds, that Ocean // should wait before applying instance health checks. InstanceGroupLabelGracePeriod = "spotinst.io/grace-period" // 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" // InstanceGroupLabelOceanInstanceTypes[White|Black]list are the metadata labels // used on the instance group to specify whether to whitelist or blacklist // specific instance types. InstanceGroupLabelOceanInstanceTypesWhitelist = "spotinst.io/ocean-instance-types-whitelist" InstanceGroupLabelOceanInstanceTypesBlacklist = "spotinst.io/ocean-instance-types-blacklist" InstanceGroupLabelOceanInstanceTypes = "spotinst.io/ocean-instance-types" // 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" // InstanceGroupLabelAutoScalerAuto* are the metadata labels used on the // instance group to specify whether headroom resources should be // automatically configured and optimized. InstanceGroupLabelAutoScalerAutoConfig = "spotinst.io/autoscaler-auto-config" InstanceGroupLabelAutoScalerAutoHeadroomPercentage = "spotinst.io/autoscaler-auto-headroom-percentage" // 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" // InstanceGroupLabelAutoScalerCooldown is the metadata label used on the // instance group to specify the cooldown period (in seconds) for scaling actions. InstanceGroupLabelAutoScalerCooldown = "spotinst.io/autoscaler-cooldown" // 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" // InstanceGroupLabelAutoScalerResourceLimits* are the metadata labels used on the // instance group to specify the resource limits configuration used by the auto scaler. InstanceGroupLabelAutoScalerResourceLimitsMaxVCPU = "spotinst.io/autoscaler-resource-limits-max-vcpu" InstanceGroupLabelAutoScalerResourceLimitsMaxMemory = "spotinst.io/autoscaler-resource-limits-max-memory" // InstanceGroupLabelRestrictScaleDown is the metadata label used on the // instance group to specify whether the scale-down activities should be restricted. InstanceGroupLabelRestrictScaleDown = "spotinst.io/restrict-scale-down" )
Variables ¶
This section is empty.
Functions ¶
func HybridInstanceGroup ¶ added in v1.18.0
func HybridInstanceGroup(ig *kops.InstanceGroup) bool
HybridInstanceGroup indicates whether the instance group labeled with a metadata label `spotinst.io/hybrid` which means the Spotinst provider should be used to upon creation if the `SpotinstHybrid` feature flag is on.
Types ¶
type InstanceGroupModelBuilder ¶ added in v1.15.1
type InstanceGroupModelBuilder struct { *model.KopsModelContext BootstrapScriptBuilder *model.BootstrapScriptBuilder Lifecycle *fi.Lifecycle SecurityLifecycle *fi.Lifecycle }
InstanceGroupModelBuilder configures InstanceGroup objects
func (*InstanceGroupModelBuilder) Build ¶ added in v1.15.1
func (b *InstanceGroupModelBuilder) Build(c *fi.ModelBuilderContext) error
Click to show internal directories.
Click to hide internal directories.