CAST AI v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI
castai.Autoscaler
Create Autoscaler Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Autoscaler(name: string, args?: AutoscalerArgs, opts?: CustomResourceOptions);@overload
def Autoscaler(resource_name: str,
args: Optional[AutoscalerArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Autoscaler(resource_name: str,
opts: Optional[ResourceOptions] = None,
autoscaler_policies_json: Optional[str] = None,
autoscaler_settings: Optional[_autoscaling.AutoscalerAutoscalerSettingsArgs] = None,
cluster_id: Optional[str] = None)func NewAutoscaler(ctx *Context, name string, args *AutoscalerArgs, opts ...ResourceOption) (*Autoscaler, error)public Autoscaler(string name, AutoscalerArgs? args = null, CustomResourceOptions? opts = null)
public Autoscaler(String name, AutoscalerArgs args)
public Autoscaler(String name, AutoscalerArgs args, CustomResourceOptions options)
type: castai:autoscaling:Autoscaler
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AutoscalerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AutoscalerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AutoscalerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AutoscalerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AutoscalerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Autoscaler Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Autoscaler resource accepts the following input properties:
- Autoscaler
Policies stringJson - autoscaler policies JSON string to override current autoscaler settings
- Autoscaler
Settings Pulumi.Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings - autoscaler policy definitions to override current autoscaler settings
- Cluster
Id string - CAST AI cluster id
- Autoscaler
Policies stringJson - autoscaler policies JSON string to override current autoscaler settings
- Autoscaler
Settings AutoscalerAutoscaler Settings Args - autoscaler policy definitions to override current autoscaler settings
- Cluster
Id string - CAST AI cluster id
- autoscaler
Policies StringJson - autoscaler policies JSON string to override current autoscaler settings
- autoscaler
Settings AutoscalerAutoscaler Settings - autoscaler policy definitions to override current autoscaler settings
- cluster
Id String - CAST AI cluster id
- autoscaler
Policies stringJson - autoscaler policies JSON string to override current autoscaler settings
- autoscaler
Settings autoscalingAutoscaler Autoscaler Settings - autoscaler policy definitions to override current autoscaler settings
- cluster
Id string - CAST AI cluster id
- autoscaler_
policies_ strjson - autoscaler policies JSON string to override current autoscaler settings
- autoscaler_
settings autoscaling.Autoscaler Autoscaler Settings Args - autoscaler policy definitions to override current autoscaler settings
- cluster_
id str - CAST AI cluster id
- autoscaler
Policies StringJson - autoscaler policies JSON string to override current autoscaler settings
- autoscaler
Settings Property Map - autoscaler policy definitions to override current autoscaler settings
- cluster
Id String - CAST AI cluster id
Outputs
All input properties are implicitly available as output properties. Additionally, the Autoscaler resource produces the following output properties:
- Autoscaler
Policies string - computed value to store full policies configuration
- Id string
- The provider-assigned unique ID for this managed resource.
- Autoscaler
Policies string - computed value to store full policies configuration
- Id string
- The provider-assigned unique ID for this managed resource.
- autoscaler
Policies String - computed value to store full policies configuration
- id String
- The provider-assigned unique ID for this managed resource.
- autoscaler
Policies string - computed value to store full policies configuration
- id string
- The provider-assigned unique ID for this managed resource.
- autoscaler_
policies str - computed value to store full policies configuration
- id str
- The provider-assigned unique ID for this managed resource.
- autoscaler
Policies String - computed value to store full policies configuration
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Autoscaler Resource
Get an existing Autoscaler resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AutoscalerState, opts?: CustomResourceOptions): Autoscaler@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
autoscaler_policies: Optional[str] = None,
autoscaler_policies_json: Optional[str] = None,
autoscaler_settings: Optional[_autoscaling.AutoscalerAutoscalerSettingsArgs] = None,
cluster_id: Optional[str] = None) -> Autoscalerfunc GetAutoscaler(ctx *Context, name string, id IDInput, state *AutoscalerState, opts ...ResourceOption) (*Autoscaler, error)public static Autoscaler Get(string name, Input<string> id, AutoscalerState? state, CustomResourceOptions? opts = null)public static Autoscaler get(String name, Output<String> id, AutoscalerState state, CustomResourceOptions options)resources: _: type: castai:autoscaling:Autoscaler get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Autoscaler
Policies string - computed value to store full policies configuration
- Autoscaler
Policies stringJson - autoscaler policies JSON string to override current autoscaler settings
- Autoscaler
Settings Pulumi.Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings - autoscaler policy definitions to override current autoscaler settings
- Cluster
Id string - CAST AI cluster id
- Autoscaler
Policies string - computed value to store full policies configuration
- Autoscaler
Policies stringJson - autoscaler policies JSON string to override current autoscaler settings
- Autoscaler
Settings AutoscalerAutoscaler Settings Args - autoscaler policy definitions to override current autoscaler settings
- Cluster
Id string - CAST AI cluster id
- autoscaler
Policies String - computed value to store full policies configuration
- autoscaler
Policies StringJson - autoscaler policies JSON string to override current autoscaler settings
- autoscaler
Settings AutoscalerAutoscaler Settings - autoscaler policy definitions to override current autoscaler settings
- cluster
Id String - CAST AI cluster id
- autoscaler
Policies string - computed value to store full policies configuration
- autoscaler
Policies stringJson - autoscaler policies JSON string to override current autoscaler settings
- autoscaler
Settings autoscalingAutoscaler Autoscaler Settings - autoscaler policy definitions to override current autoscaler settings
- cluster
Id string - CAST AI cluster id
- autoscaler_
policies str - computed value to store full policies configuration
- autoscaler_
policies_ strjson - autoscaler policies JSON string to override current autoscaler settings
- autoscaler_
settings autoscaling.Autoscaler Autoscaler Settings Args - autoscaler policy definitions to override current autoscaler settings
- cluster_
id str - CAST AI cluster id
- autoscaler
Policies String - computed value to store full policies configuration
- autoscaler
Policies StringJson - autoscaler policies JSON string to override current autoscaler settings
- autoscaler
Settings Property Map - autoscaler policy definitions to override current autoscaler settings
- cluster
Id String - CAST AI cluster id
Supporting Types
AutoscalerAutoscalerSettings, AutoscalerAutoscalerSettingsArgs
- Cluster
Limits Pulumi.Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings Cluster Limits - defines minimum and maximum amount of CPU the cluster can have.
- Enabled bool
- enable/disable autoscaler policies
- Is
Scoped boolMode - run autoscaler in scoped mode. Only marked pods and nodes will be considered.
- Node
Downscaler Pulumi.Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings Node Downscaler - node downscaler defines policies for removing nodes based on the configured conditions.
- Node
Templates boolPartial Matching Enabled - marks whether partial matching should be used when deciding which custom node template to select.
- Spot
Instances Pulumi.Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings Spot Instances - policy defining whether autoscaler can use spot instances for provisioning additional workloads.
- Unschedulable
Pods Pulumi.Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings Unschedulable Pods - policy defining autoscaler's behavior when unschedulable pods were detected.
- Cluster
Limits AutoscalerAutoscaler Settings Cluster Limits - defines minimum and maximum amount of CPU the cluster can have.
- Enabled bool
- enable/disable autoscaler policies
- Is
Scoped boolMode - run autoscaler in scoped mode. Only marked pods and nodes will be considered.
- Node
Downscaler AutoscalerAutoscaler Settings Node Downscaler - node downscaler defines policies for removing nodes based on the configured conditions.
- Node
Templates boolPartial Matching Enabled - marks whether partial matching should be used when deciding which custom node template to select.
- Spot
Instances AutoscalerAutoscaler Settings Spot Instances - policy defining whether autoscaler can use spot instances for provisioning additional workloads.
- Unschedulable
Pods AutoscalerAutoscaler Settings Unschedulable Pods - policy defining autoscaler's behavior when unschedulable pods were detected.
- cluster
Limits AutoscalerAutoscaler Settings Cluster Limits - defines minimum and maximum amount of CPU the cluster can have.
- enabled Boolean
- enable/disable autoscaler policies
- is
Scoped BooleanMode - run autoscaler in scoped mode. Only marked pods and nodes will be considered.
- node
Downscaler AutoscalerAutoscaler Settings Node Downscaler - node downscaler defines policies for removing nodes based on the configured conditions.
- node
Templates BooleanPartial Matching Enabled - marks whether partial matching should be used when deciding which custom node template to select.
- spot
Instances AutoscalerAutoscaler Settings Spot Instances - policy defining whether autoscaler can use spot instances for provisioning additional workloads.
- unschedulable
Pods AutoscalerAutoscaler Settings Unschedulable Pods - policy defining autoscaler's behavior when unschedulable pods were detected.
- cluster
Limits autoscalingAutoscaler Autoscaler Settings Cluster Limits - defines minimum and maximum amount of CPU the cluster can have.
- enabled boolean
- enable/disable autoscaler policies
- is
Scoped booleanMode - run autoscaler in scoped mode. Only marked pods and nodes will be considered.
- node
Downscaler autoscalingAutoscaler Autoscaler Settings Node Downscaler - node downscaler defines policies for removing nodes based on the configured conditions.
- node
Templates booleanPartial Matching Enabled - marks whether partial matching should be used when deciding which custom node template to select.
- spot
Instances autoscalingAutoscaler Autoscaler Settings Spot Instances - policy defining whether autoscaler can use spot instances for provisioning additional workloads.
- unschedulable
Pods autoscalingAutoscaler Autoscaler Settings Unschedulable Pods - policy defining autoscaler's behavior when unschedulable pods were detected.
- cluster_
limits autoscaling.Autoscaler Autoscaler Settings Cluster Limits - defines minimum and maximum amount of CPU the cluster can have.
- enabled bool
- enable/disable autoscaler policies
- is_
scoped_ boolmode - run autoscaler in scoped mode. Only marked pods and nodes will be considered.
- node_
downscaler autoscaling.Autoscaler Autoscaler Settings Node Downscaler - node downscaler defines policies for removing nodes based on the configured conditions.
- node_
templates_ boolpartial_ matching_ enabled - marks whether partial matching should be used when deciding which custom node template to select.
- spot_
instances autoscaling.Autoscaler Autoscaler Settings Spot Instances - policy defining whether autoscaler can use spot instances for provisioning additional workloads.
- unschedulable_
pods autoscaling.Autoscaler Autoscaler Settings Unschedulable Pods - policy defining autoscaler's behavior when unschedulable pods were detected.
- cluster
Limits Property Map - defines minimum and maximum amount of CPU the cluster can have.
- enabled Boolean
- enable/disable autoscaler policies
- is
Scoped BooleanMode - run autoscaler in scoped mode. Only marked pods and nodes will be considered.
- node
Downscaler Property Map - node downscaler defines policies for removing nodes based on the configured conditions.
- node
Templates BooleanPartial Matching Enabled - marks whether partial matching should be used when deciding which custom node template to select.
- spot
Instances Property Map - policy defining whether autoscaler can use spot instances for provisioning additional workloads.
- unschedulable
Pods Property Map - policy defining autoscaler's behavior when unschedulable pods were detected.
AutoscalerAutoscalerSettingsClusterLimits, AutoscalerAutoscalerSettingsClusterLimitsArgs
- Cpu
Pulumi.
Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings Cluster Limits Cpu - defines the minimum and maximum amount of CPUs for cluster's worker nodes.
- Enabled bool
- enable/disable cluster size limits policy.
- Cpu
Autoscaler
Autoscaler Settings Cluster Limits Cpu - defines the minimum and maximum amount of CPUs for cluster's worker nodes.
- Enabled bool
- enable/disable cluster size limits policy.
- cpu
Autoscaler
Autoscaler Settings Cluster Limits Cpu - defines the minimum and maximum amount of CPUs for cluster's worker nodes.
- enabled Boolean
- enable/disable cluster size limits policy.
- cpu
autoscaling
Autoscaler Autoscaler Settings Cluster Limits Cpu - defines the minimum and maximum amount of CPUs for cluster's worker nodes.
- enabled boolean
- enable/disable cluster size limits policy.
- cpu
autoscaling.
Autoscaler Autoscaler Settings Cluster Limits Cpu - defines the minimum and maximum amount of CPUs for cluster's worker nodes.
- enabled bool
- enable/disable cluster size limits policy.
- cpu Property Map
- defines the minimum and maximum amount of CPUs for cluster's worker nodes.
- enabled Boolean
- enable/disable cluster size limits policy.
AutoscalerAutoscalerSettingsClusterLimitsCpu, AutoscalerAutoscalerSettingsClusterLimitsCpuArgs
AutoscalerAutoscalerSettingsNodeDownscaler, AutoscalerAutoscalerSettingsNodeDownscalerArgs
- Empty
Nodes Pulumi.Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings Node Downscaler Empty Nodes - defines whether Node Downscaler should opt in for removing empty worker nodes when possible.
- Enabled bool
- enable/disable node downscaler policy.
- Evictor
Pulumi.
Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings Node Downscaler Evictor - defines the CAST AI Evictor component settings. Evictor watches the pods running in your cluster and looks for ways to compact them into fewer nodes, making nodes empty, which will be removed by the empty worker nodes policy.
- Empty
Nodes AutoscalerAutoscaler Settings Node Downscaler Empty Nodes - defines whether Node Downscaler should opt in for removing empty worker nodes when possible.
- Enabled bool
- enable/disable node downscaler policy.
- Evictor
Autoscaler
Autoscaler Settings Node Downscaler Evictor - defines the CAST AI Evictor component settings. Evictor watches the pods running in your cluster and looks for ways to compact them into fewer nodes, making nodes empty, which will be removed by the empty worker nodes policy.
- empty
Nodes AutoscalerAutoscaler Settings Node Downscaler Empty Nodes - defines whether Node Downscaler should opt in for removing empty worker nodes when possible.
- enabled Boolean
- enable/disable node downscaler policy.
- evictor
Autoscaler
Autoscaler Settings Node Downscaler Evictor - defines the CAST AI Evictor component settings. Evictor watches the pods running in your cluster and looks for ways to compact them into fewer nodes, making nodes empty, which will be removed by the empty worker nodes policy.
- empty
Nodes autoscalingAutoscaler Autoscaler Settings Node Downscaler Empty Nodes - defines whether Node Downscaler should opt in for removing empty worker nodes when possible.
- enabled boolean
- enable/disable node downscaler policy.
- evictor
autoscaling
Autoscaler Autoscaler Settings Node Downscaler Evictor - defines the CAST AI Evictor component settings. Evictor watches the pods running in your cluster and looks for ways to compact them into fewer nodes, making nodes empty, which will be removed by the empty worker nodes policy.
- empty_
nodes autoscaling.Autoscaler Autoscaler Settings Node Downscaler Empty Nodes - defines whether Node Downscaler should opt in for removing empty worker nodes when possible.
- enabled bool
- enable/disable node downscaler policy.
- evictor
autoscaling.
Autoscaler Autoscaler Settings Node Downscaler Evictor - defines the CAST AI Evictor component settings. Evictor watches the pods running in your cluster and looks for ways to compact them into fewer nodes, making nodes empty, which will be removed by the empty worker nodes policy.
- empty
Nodes Property Map - defines whether Node Downscaler should opt in for removing empty worker nodes when possible.
- enabled Boolean
- enable/disable node downscaler policy.
- evictor Property Map
- defines the CAST AI Evictor component settings. Evictor watches the pods running in your cluster and looks for ways to compact them into fewer nodes, making nodes empty, which will be removed by the empty worker nodes policy.
AutoscalerAutoscalerSettingsNodeDownscalerEmptyNodes, AutoscalerAutoscalerSettingsNodeDownscalerEmptyNodesArgs
- Delay
Seconds int - period (in seconds) to wait before removing the node. Might be useful to control the aggressiveness of the downscaler.
- Enabled bool
- enable/disable the empty worker nodes policy.
- Delay
Seconds int - period (in seconds) to wait before removing the node. Might be useful to control the aggressiveness of the downscaler.
- Enabled bool
- enable/disable the empty worker nodes policy.
- delay
Seconds Integer - period (in seconds) to wait before removing the node. Might be useful to control the aggressiveness of the downscaler.
- enabled Boolean
- enable/disable the empty worker nodes policy.
- delay
Seconds number - period (in seconds) to wait before removing the node. Might be useful to control the aggressiveness of the downscaler.
- enabled boolean
- enable/disable the empty worker nodes policy.
- delay_
seconds int - period (in seconds) to wait before removing the node. Might be useful to control the aggressiveness of the downscaler.
- enabled bool
- enable/disable the empty worker nodes policy.
- delay
Seconds Number - period (in seconds) to wait before removing the node. Might be useful to control the aggressiveness of the downscaler.
- enabled Boolean
- enable/disable the empty worker nodes policy.
AutoscalerAutoscalerSettingsNodeDownscalerEvictor, AutoscalerAutoscalerSettingsNodeDownscalerEvictorArgs
- Aggressive
Mode bool - enable/disable aggressive mode. By default, Evictor does not target nodes that are running unreplicated pods. This mode will make the Evictor start considering application with just a single replica.
- Cycle
Interval string - configure the interval duration between Evictor operations. This property can be used to lower or raise the frequency of the Evictor's find-and-drain operations.
- Dry
Run bool - enable/disable dry-run. This property allows you to prevent the Evictor from carrying any operations out and preview the actions it would take.
- Enabled bool
- enable/disable the Evictor policy. This will either install or uninstall the Evictor component in your cluster.
- Ignore
Pod boolDisruption Budgets - if enabled then Evictor will attempt to evict pods that have pod disruption budgets configured.
- Node
Grace intPeriod Minutes - configure the node grace period which controls the duration which must pass after a node has been created before Evictor starts considering that node.
- Pod
Eviction stringFailure Back Off Interval - configure the pod eviction failure back off interval. If pod eviction fails then Evictor will attempt to evict it again after the amount of time specified here.
- Scoped
Mode bool - enable/disable scoped mode. By default, Evictor targets all nodes in the cluster. This mode will constrain it to just the nodes which were created by CAST AI.
- Aggressive
Mode bool - enable/disable aggressive mode. By default, Evictor does not target nodes that are running unreplicated pods. This mode will make the Evictor start considering application with just a single replica.
- Cycle
Interval string - configure the interval duration between Evictor operations. This property can be used to lower or raise the frequency of the Evictor's find-and-drain operations.
- Dry
Run bool - enable/disable dry-run. This property allows you to prevent the Evictor from carrying any operations out and preview the actions it would take.
- Enabled bool
- enable/disable the Evictor policy. This will either install or uninstall the Evictor component in your cluster.
- Ignore
Pod boolDisruption Budgets - if enabled then Evictor will attempt to evict pods that have pod disruption budgets configured.
- Node
Grace intPeriod Minutes - configure the node grace period which controls the duration which must pass after a node has been created before Evictor starts considering that node.
- Pod
Eviction stringFailure Back Off Interval - configure the pod eviction failure back off interval. If pod eviction fails then Evictor will attempt to evict it again after the amount of time specified here.
- Scoped
Mode bool - enable/disable scoped mode. By default, Evictor targets all nodes in the cluster. This mode will constrain it to just the nodes which were created by CAST AI.
- aggressive
Mode Boolean - enable/disable aggressive mode. By default, Evictor does not target nodes that are running unreplicated pods. This mode will make the Evictor start considering application with just a single replica.
- cycle
Interval String - configure the interval duration between Evictor operations. This property can be used to lower or raise the frequency of the Evictor's find-and-drain operations.
- dry
Run Boolean - enable/disable dry-run. This property allows you to prevent the Evictor from carrying any operations out and preview the actions it would take.
- enabled Boolean
- enable/disable the Evictor policy. This will either install or uninstall the Evictor component in your cluster.
- ignore
Pod BooleanDisruption Budgets - if enabled then Evictor will attempt to evict pods that have pod disruption budgets configured.
- node
Grace IntegerPeriod Minutes - configure the node grace period which controls the duration which must pass after a node has been created before Evictor starts considering that node.
- pod
Eviction StringFailure Back Off Interval - configure the pod eviction failure back off interval. If pod eviction fails then Evictor will attempt to evict it again after the amount of time specified here.
- scoped
Mode Boolean - enable/disable scoped mode. By default, Evictor targets all nodes in the cluster. This mode will constrain it to just the nodes which were created by CAST AI.
- aggressive
Mode boolean - enable/disable aggressive mode. By default, Evictor does not target nodes that are running unreplicated pods. This mode will make the Evictor start considering application with just a single replica.
- cycle
Interval string - configure the interval duration between Evictor operations. This property can be used to lower or raise the frequency of the Evictor's find-and-drain operations.
- dry
Run boolean - enable/disable dry-run. This property allows you to prevent the Evictor from carrying any operations out and preview the actions it would take.
- enabled boolean
- enable/disable the Evictor policy. This will either install or uninstall the Evictor component in your cluster.
- ignore
Pod booleanDisruption Budgets - if enabled then Evictor will attempt to evict pods that have pod disruption budgets configured.
- node
Grace numberPeriod Minutes - configure the node grace period which controls the duration which must pass after a node has been created before Evictor starts considering that node.
- pod
Eviction stringFailure Back Off Interval - configure the pod eviction failure back off interval. If pod eviction fails then Evictor will attempt to evict it again after the amount of time specified here.
- scoped
Mode boolean - enable/disable scoped mode. By default, Evictor targets all nodes in the cluster. This mode will constrain it to just the nodes which were created by CAST AI.
- aggressive_
mode bool - enable/disable aggressive mode. By default, Evictor does not target nodes that are running unreplicated pods. This mode will make the Evictor start considering application with just a single replica.
- cycle_
interval str - configure the interval duration between Evictor operations. This property can be used to lower or raise the frequency of the Evictor's find-and-drain operations.
- dry_
run bool - enable/disable dry-run. This property allows you to prevent the Evictor from carrying any operations out and preview the actions it would take.
- enabled bool
- enable/disable the Evictor policy. This will either install or uninstall the Evictor component in your cluster.
- ignore_
pod_ booldisruption_ budgets - if enabled then Evictor will attempt to evict pods that have pod disruption budgets configured.
- node_
grace_ intperiod_ minutes - configure the node grace period which controls the duration which must pass after a node has been created before Evictor starts considering that node.
- pod_
eviction_ strfailure_ back_ off_ interval - configure the pod eviction failure back off interval. If pod eviction fails then Evictor will attempt to evict it again after the amount of time specified here.
- scoped_
mode bool - enable/disable scoped mode. By default, Evictor targets all nodes in the cluster. This mode will constrain it to just the nodes which were created by CAST AI.
- aggressive
Mode Boolean - enable/disable aggressive mode. By default, Evictor does not target nodes that are running unreplicated pods. This mode will make the Evictor start considering application with just a single replica.
- cycle
Interval String - configure the interval duration between Evictor operations. This property can be used to lower or raise the frequency of the Evictor's find-and-drain operations.
- dry
Run Boolean - enable/disable dry-run. This property allows you to prevent the Evictor from carrying any operations out and preview the actions it would take.
- enabled Boolean
- enable/disable the Evictor policy. This will either install or uninstall the Evictor component in your cluster.
- ignore
Pod BooleanDisruption Budgets - if enabled then Evictor will attempt to evict pods that have pod disruption budgets configured.
- node
Grace NumberPeriod Minutes - configure the node grace period which controls the duration which must pass after a node has been created before Evictor starts considering that node.
- pod
Eviction StringFailure Back Off Interval - configure the pod eviction failure back off interval. If pod eviction fails then Evictor will attempt to evict it again after the amount of time specified here.
- scoped
Mode Boolean - enable/disable scoped mode. By default, Evictor targets all nodes in the cluster. This mode will constrain it to just the nodes which were created by CAST AI.
AutoscalerAutoscalerSettingsSpotInstances, AutoscalerAutoscalerSettingsSpotInstancesArgs
- Enabled bool
- enable/disable spot instances policy.
- Max
Reclaim intRate - max allowed reclaim rate when choosing spot instance type. E.g. if the value is 10%, instance types having 10% or higher reclaim rate will not be considered. Set to zero to use all instance types regardless of reclaim rate.
- Spot
Backups Pulumi.Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings Spot Instances Spot Backups - policy defining whether autoscaler can use spot backups instead of spot instances when spot instances are not available.
- Spot
Diversity boolEnabled - enable/disable spot diversity policy. When enabled, autoscaler will try to balance between diverse and cost optimal instance types.
- Spot
Diversity intPrice Increase Limit - allowed node configuration price increase when diversifying instance types. E.g. if the value is 10%, then the overall price of diversified instance types can be 10% higher than the price of the optimal configuration.
- Spot
Interruption Pulumi.Predictions Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings Spot Instances Spot Interruption Predictions - configure the handling of SPOT interruption predictions.
- Enabled bool
- enable/disable spot instances policy.
- Max
Reclaim intRate - max allowed reclaim rate when choosing spot instance type. E.g. if the value is 10%, instance types having 10% or higher reclaim rate will not be considered. Set to zero to use all instance types regardless of reclaim rate.
- Spot
Backups AutoscalerAutoscaler Settings Spot Instances Spot Backups - policy defining whether autoscaler can use spot backups instead of spot instances when spot instances are not available.
- Spot
Diversity boolEnabled - enable/disable spot diversity policy. When enabled, autoscaler will try to balance between diverse and cost optimal instance types.
- Spot
Diversity intPrice Increase Limit - allowed node configuration price increase when diversifying instance types. E.g. if the value is 10%, then the overall price of diversified instance types can be 10% higher than the price of the optimal configuration.
- Spot
Interruption AutoscalerPredictions Autoscaler Settings Spot Instances Spot Interruption Predictions - configure the handling of SPOT interruption predictions.
- enabled Boolean
- enable/disable spot instances policy.
- max
Reclaim IntegerRate - max allowed reclaim rate when choosing spot instance type. E.g. if the value is 10%, instance types having 10% or higher reclaim rate will not be considered. Set to zero to use all instance types regardless of reclaim rate.
- spot
Backups AutoscalerAutoscaler Settings Spot Instances Spot Backups - policy defining whether autoscaler can use spot backups instead of spot instances when spot instances are not available.
- spot
Diversity BooleanEnabled - enable/disable spot diversity policy. When enabled, autoscaler will try to balance between diverse and cost optimal instance types.
- spot
Diversity IntegerPrice Increase Limit - allowed node configuration price increase when diversifying instance types. E.g. if the value is 10%, then the overall price of diversified instance types can be 10% higher than the price of the optimal configuration.
- spot
Interruption AutoscalerPredictions Autoscaler Settings Spot Instances Spot Interruption Predictions - configure the handling of SPOT interruption predictions.
- enabled boolean
- enable/disable spot instances policy.
- max
Reclaim numberRate - max allowed reclaim rate when choosing spot instance type. E.g. if the value is 10%, instance types having 10% or higher reclaim rate will not be considered. Set to zero to use all instance types regardless of reclaim rate.
- spot
Backups autoscalingAutoscaler Autoscaler Settings Spot Instances Spot Backups - policy defining whether autoscaler can use spot backups instead of spot instances when spot instances are not available.
- spot
Diversity booleanEnabled - enable/disable spot diversity policy. When enabled, autoscaler will try to balance between diverse and cost optimal instance types.
- spot
Diversity numberPrice Increase Limit - allowed node configuration price increase when diversifying instance types. E.g. if the value is 10%, then the overall price of diversified instance types can be 10% higher than the price of the optimal configuration.
- spot
Interruption autoscalingPredictions Autoscaler Autoscaler Settings Spot Instances Spot Interruption Predictions - configure the handling of SPOT interruption predictions.
- enabled bool
- enable/disable spot instances policy.
- max_
reclaim_ intrate - max allowed reclaim rate when choosing spot instance type. E.g. if the value is 10%, instance types having 10% or higher reclaim rate will not be considered. Set to zero to use all instance types regardless of reclaim rate.
- spot_
backups autoscaling.Autoscaler Autoscaler Settings Spot Instances Spot Backups - policy defining whether autoscaler can use spot backups instead of spot instances when spot instances are not available.
- spot_
diversity_ boolenabled - enable/disable spot diversity policy. When enabled, autoscaler will try to balance between diverse and cost optimal instance types.
- spot_
diversity_ intprice_ increase_ limit - allowed node configuration price increase when diversifying instance types. E.g. if the value is 10%, then the overall price of diversified instance types can be 10% higher than the price of the optimal configuration.
- spot_
interruption_ autoscaling.predictions Autoscaler Autoscaler Settings Spot Instances Spot Interruption Predictions - configure the handling of SPOT interruption predictions.
- enabled Boolean
- enable/disable spot instances policy.
- max
Reclaim NumberRate - max allowed reclaim rate when choosing spot instance type. E.g. if the value is 10%, instance types having 10% or higher reclaim rate will not be considered. Set to zero to use all instance types regardless of reclaim rate.
- spot
Backups Property Map - policy defining whether autoscaler can use spot backups instead of spot instances when spot instances are not available.
- spot
Diversity BooleanEnabled - enable/disable spot diversity policy. When enabled, autoscaler will try to balance between diverse and cost optimal instance types.
- spot
Diversity NumberPrice Increase Limit - allowed node configuration price increase when diversifying instance types. E.g. if the value is 10%, then the overall price of diversified instance types can be 10% higher than the price of the optimal configuration.
- spot
Interruption Property MapPredictions - configure the handling of SPOT interruption predictions.
AutoscalerAutoscalerSettingsSpotInstancesSpotBackups, AutoscalerAutoscalerSettingsSpotInstancesSpotBackupsArgs
- Enabled bool
- enable/disable spot backups policy.
- Spot
Backup intRestore Rate Seconds - defines interval on how often spot backups restore to real spot should occur.
- Enabled bool
- enable/disable spot backups policy.
- Spot
Backup intRestore Rate Seconds - defines interval on how often spot backups restore to real spot should occur.
- enabled Boolean
- enable/disable spot backups policy.
- spot
Backup IntegerRestore Rate Seconds - defines interval on how often spot backups restore to real spot should occur.
- enabled boolean
- enable/disable spot backups policy.
- spot
Backup numberRestore Rate Seconds - defines interval on how often spot backups restore to real spot should occur.
- enabled bool
- enable/disable spot backups policy.
- spot_
backup_ intrestore_ rate_ seconds - defines interval on how often spot backups restore to real spot should occur.
- enabled Boolean
- enable/disable spot backups policy.
- spot
Backup NumberRestore Rate Seconds - defines interval on how often spot backups restore to real spot should occur.
AutoscalerAutoscalerSettingsSpotInstancesSpotInterruptionPredictions, AutoscalerAutoscalerSettingsSpotInstancesSpotInterruptionPredictionsArgs
- Enabled bool
- enable/disable spot interruption predictions.
- Spot
Interruption stringPredictions Type - define the type of the spot interruption prediction to handle. Allowed values are AWSRebalanceRecommendations, CASTAIInterruptionPredictions.
- Enabled bool
- enable/disable spot interruption predictions.
- Spot
Interruption stringPredictions Type - define the type of the spot interruption prediction to handle. Allowed values are AWSRebalanceRecommendations, CASTAIInterruptionPredictions.
- enabled Boolean
- enable/disable spot interruption predictions.
- spot
Interruption StringPredictions Type - define the type of the spot interruption prediction to handle. Allowed values are AWSRebalanceRecommendations, CASTAIInterruptionPredictions.
- enabled boolean
- enable/disable spot interruption predictions.
- spot
Interruption stringPredictions Type - define the type of the spot interruption prediction to handle. Allowed values are AWSRebalanceRecommendations, CASTAIInterruptionPredictions.
- enabled bool
- enable/disable spot interruption predictions.
- spot_
interruption_ strpredictions_ type - define the type of the spot interruption prediction to handle. Allowed values are AWSRebalanceRecommendations, CASTAIInterruptionPredictions.
- enabled Boolean
- enable/disable spot interruption predictions.
- spot
Interruption StringPredictions Type - define the type of the spot interruption prediction to handle. Allowed values are AWSRebalanceRecommendations, CASTAIInterruptionPredictions.
AutoscalerAutoscalerSettingsUnschedulablePods, AutoscalerAutoscalerSettingsUnschedulablePodsArgs
- Custom
Instances boolEnabled - enable/disable custom instances policy.
- Enabled bool
- enable/disable unschedulable pods detection policy.
- Headroom
Pulumi.
Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings Unschedulable Pods Headroom - additional headroom based on cluster's total available capacity for on-demand nodes.
- Headroom
Spot Pulumi.Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings Unschedulable Pods Headroom Spot - additional headroom based on cluster's total available capacity for spot nodes.
- Node
Constraints Pulumi.Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings Unschedulable Pods Node Constraints - defines the node constraints that will be applied when autoscaling with Unschedulable Pods policy.
- Pod
Pinner Pulumi.Cast AI. Autoscaling. Inputs. Autoscaler Autoscaler Settings Unschedulable Pods Pod Pinner - defines the Cast AI Pod Pinner components settings.
- Custom
Instances boolEnabled - enable/disable custom instances policy.
- Enabled bool
- enable/disable unschedulable pods detection policy.
- Headroom
Autoscaler
Autoscaler Settings Unschedulable Pods Headroom - additional headroom based on cluster's total available capacity for on-demand nodes.
- Headroom
Spot AutoscalerAutoscaler Settings Unschedulable Pods Headroom Spot - additional headroom based on cluster's total available capacity for spot nodes.
- Node
Constraints AutoscalerAutoscaler Settings Unschedulable Pods Node Constraints - defines the node constraints that will be applied when autoscaling with Unschedulable Pods policy.
- Pod
Pinner AutoscalerAutoscaler Settings Unschedulable Pods Pod Pinner - defines the Cast AI Pod Pinner components settings.
- custom
Instances BooleanEnabled - enable/disable custom instances policy.
- enabled Boolean
- enable/disable unschedulable pods detection policy.
- headroom
Autoscaler
Autoscaler Settings Unschedulable Pods Headroom - additional headroom based on cluster's total available capacity for on-demand nodes.
- headroom
Spot AutoscalerAutoscaler Settings Unschedulable Pods Headroom Spot - additional headroom based on cluster's total available capacity for spot nodes.
- node
Constraints AutoscalerAutoscaler Settings Unschedulable Pods Node Constraints - defines the node constraints that will be applied when autoscaling with Unschedulable Pods policy.
- pod
Pinner AutoscalerAutoscaler Settings Unschedulable Pods Pod Pinner - defines the Cast AI Pod Pinner components settings.
- custom
Instances booleanEnabled - enable/disable custom instances policy.
- enabled boolean
- enable/disable unschedulable pods detection policy.
- headroom
autoscaling
Autoscaler Autoscaler Settings Unschedulable Pods Headroom - additional headroom based on cluster's total available capacity for on-demand nodes.
- headroom
Spot autoscalingAutoscaler Autoscaler Settings Unschedulable Pods Headroom Spot - additional headroom based on cluster's total available capacity for spot nodes.
- node
Constraints autoscalingAutoscaler Autoscaler Settings Unschedulable Pods Node Constraints - defines the node constraints that will be applied when autoscaling with Unschedulable Pods policy.
- pod
Pinner autoscalingAutoscaler Autoscaler Settings Unschedulable Pods Pod Pinner - defines the Cast AI Pod Pinner components settings.
- custom_
instances_ boolenabled - enable/disable custom instances policy.
- enabled bool
- enable/disable unschedulable pods detection policy.
- headroom
autoscaling.
Autoscaler Autoscaler Settings Unschedulable Pods Headroom - additional headroom based on cluster's total available capacity for on-demand nodes.
- headroom_
spot autoscaling.Autoscaler Autoscaler Settings Unschedulable Pods Headroom Spot - additional headroom based on cluster's total available capacity for spot nodes.
- node_
constraints autoscaling.Autoscaler Autoscaler Settings Unschedulable Pods Node Constraints - defines the node constraints that will be applied when autoscaling with Unschedulable Pods policy.
- pod_
pinner autoscaling.Autoscaler Autoscaler Settings Unschedulable Pods Pod Pinner - defines the Cast AI Pod Pinner components settings.
- custom
Instances BooleanEnabled - enable/disable custom instances policy.
- enabled Boolean
- enable/disable unschedulable pods detection policy.
- headroom Property Map
- additional headroom based on cluster's total available capacity for on-demand nodes.
- headroom
Spot Property Map - additional headroom based on cluster's total available capacity for spot nodes.
- node
Constraints Property Map - defines the node constraints that will be applied when autoscaling with Unschedulable Pods policy.
- pod
Pinner Property Map - defines the Cast AI Pod Pinner components settings.
AutoscalerAutoscalerSettingsUnschedulablePodsHeadroom, AutoscalerAutoscalerSettingsUnschedulablePodsHeadroomArgs
- Cpu
Percentage int - defines percentage of additional CPU capacity to be added.
- Enabled bool
- enable/disable headroom policy.
- Memory
Percentage int - defines percentage of additional memory capacity to be added.
- Cpu
Percentage int - defines percentage of additional CPU capacity to be added.
- Enabled bool
- enable/disable headroom policy.
- Memory
Percentage int - defines percentage of additional memory capacity to be added.
- cpu
Percentage Integer - defines percentage of additional CPU capacity to be added.
- enabled Boolean
- enable/disable headroom policy.
- memory
Percentage Integer - defines percentage of additional memory capacity to be added.
- cpu
Percentage number - defines percentage of additional CPU capacity to be added.
- enabled boolean
- enable/disable headroom policy.
- memory
Percentage number - defines percentage of additional memory capacity to be added.
- cpu_
percentage int - defines percentage of additional CPU capacity to be added.
- enabled bool
- enable/disable headroom policy.
- memory_
percentage int - defines percentage of additional memory capacity to be added.
- cpu
Percentage Number - defines percentage of additional CPU capacity to be added.
- enabled Boolean
- enable/disable headroom policy.
- memory
Percentage Number - defines percentage of additional memory capacity to be added.
AutoscalerAutoscalerSettingsUnschedulablePodsHeadroomSpot, AutoscalerAutoscalerSettingsUnschedulablePodsHeadroomSpotArgs
- Cpu
Percentage int - defines percentage of additional CPU capacity to be added.
- Enabled bool
- enable/disable headroom_spot policy.
- Memory
Percentage int - defines percentage of additional memory capacity to be added.
- Cpu
Percentage int - defines percentage of additional CPU capacity to be added.
- Enabled bool
- enable/disable headroom_spot policy.
- Memory
Percentage int - defines percentage of additional memory capacity to be added.
- cpu
Percentage Integer - defines percentage of additional CPU capacity to be added.
- enabled Boolean
- enable/disable headroom_spot policy.
- memory
Percentage Integer - defines percentage of additional memory capacity to be added.
- cpu
Percentage number - defines percentage of additional CPU capacity to be added.
- enabled boolean
- enable/disable headroom_spot policy.
- memory
Percentage number - defines percentage of additional memory capacity to be added.
- cpu_
percentage int - defines percentage of additional CPU capacity to be added.
- enabled bool
- enable/disable headroom_spot policy.
- memory_
percentage int - defines percentage of additional memory capacity to be added.
- cpu
Percentage Number - defines percentage of additional CPU capacity to be added.
- enabled Boolean
- enable/disable headroom_spot policy.
- memory
Percentage Number - defines percentage of additional memory capacity to be added.
AutoscalerAutoscalerSettingsUnschedulablePodsNodeConstraints, AutoscalerAutoscalerSettingsUnschedulablePodsNodeConstraintsArgs
- Enabled bool
- enable/disable node constraints policy.
- Max
Cpu intCores - defines max CPU cores for the node to pick.
- Max
Ram intMib - defines max RAM in MiB for the node to pick.
- Min
Cpu intCores - defines min CPU cores for the node to pick.
- Min
Ram intMib - defines min RAM in MiB for the node to pick.
- Enabled bool
- enable/disable node constraints policy.
- Max
Cpu intCores - defines max CPU cores for the node to pick.
- Max
Ram intMib - defines max RAM in MiB for the node to pick.
- Min
Cpu intCores - defines min CPU cores for the node to pick.
- Min
Ram intMib - defines min RAM in MiB for the node to pick.
- enabled Boolean
- enable/disable node constraints policy.
- max
Cpu IntegerCores - defines max CPU cores for the node to pick.
- max
Ram IntegerMib - defines max RAM in MiB for the node to pick.
- min
Cpu IntegerCores - defines min CPU cores for the node to pick.
- min
Ram IntegerMib - defines min RAM in MiB for the node to pick.
- enabled boolean
- enable/disable node constraints policy.
- max
Cpu numberCores - defines max CPU cores for the node to pick.
- max
Ram numberMib - defines max RAM in MiB for the node to pick.
- min
Cpu numberCores - defines min CPU cores for the node to pick.
- min
Ram numberMib - defines min RAM in MiB for the node to pick.
- enabled bool
- enable/disable node constraints policy.
- max_
cpu_ intcores - defines max CPU cores for the node to pick.
- max_
ram_ intmib - defines max RAM in MiB for the node to pick.
- min_
cpu_ intcores - defines min CPU cores for the node to pick.
- min_
ram_ intmib - defines min RAM in MiB for the node to pick.
- enabled Boolean
- enable/disable node constraints policy.
- max
Cpu NumberCores - defines max CPU cores for the node to pick.
- max
Ram NumberMib - defines max RAM in MiB for the node to pick.
- min
Cpu NumberCores - defines min CPU cores for the node to pick.
- min
Ram NumberMib - defines min RAM in MiB for the node to pick.
AutoscalerAutoscalerSettingsUnschedulablePodsPodPinner, AutoscalerAutoscalerSettingsUnschedulablePodsPodPinnerArgs
- Enabled bool
- enable/disable the Pod Pinner component's automatic management in your cluster. Default: enabled.
- Enabled bool
- enable/disable the Pod Pinner component's automatic management in your cluster. Default: enabled.
- enabled Boolean
- enable/disable the Pod Pinner component's automatic management in your cluster. Default: enabled.
- enabled boolean
- enable/disable the Pod Pinner component's automatic management in your cluster. Default: enabled.
- enabled bool
- enable/disable the Pod Pinner component's automatic management in your cluster. Default: enabled.
- enabled Boolean
- enable/disable the Pod Pinner component's automatic management in your cluster. Default: enabled.
Package Details
- Repository
- castai castai/pulumi-castai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
castaiTerraform Provider.
