harness.cluster.OrchestratorConfig
Explore with Pulumi AI
Create OrchestratorConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrchestratorConfig(name: string, args: OrchestratorConfigArgs, opts?: CustomResourceOptions);
@overload
def OrchestratorConfig(resource_name: str,
args: OrchestratorConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrchestratorConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
distribution: Optional[OrchestratorConfigDistributionArgs] = None,
orchestrator_id: Optional[str] = None,
binpacking: Optional[OrchestratorConfigBinpackingArgs] = None,
node_preferences: Optional[OrchestratorConfigNodePreferencesArgs] = None)
func NewOrchestratorConfig(ctx *Context, name string, args OrchestratorConfigArgs, opts ...ResourceOption) (*OrchestratorConfig, error)
public OrchestratorConfig(string name, OrchestratorConfigArgs args, CustomResourceOptions? opts = null)
public OrchestratorConfig(String name, OrchestratorConfigArgs args)
public OrchestratorConfig(String name, OrchestratorConfigArgs args, CustomResourceOptions options)
type: harness:cluster:OrchestratorConfig
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 OrchestratorConfigArgs
- 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 OrchestratorConfigArgs
- 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 OrchestratorConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrchestratorConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrchestratorConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var orchestratorConfigResource = new Harness.Cluster.OrchestratorConfig("orchestratorConfigResource", new()
{
Distribution = new Harness.Cluster.Inputs.OrchestratorConfigDistributionArgs
{
OndemandReplicaPercentage = 0,
BaseOndemandCapacity = 0,
Selector = "string",
Strategy = "string",
},
OrchestratorId = "string",
Binpacking = new Harness.Cluster.Inputs.OrchestratorConfigBinpackingArgs
{
Disruption = new Harness.Cluster.Inputs.OrchestratorConfigBinpackingDisruptionArgs
{
Budgets = new[]
{
new Harness.Cluster.Inputs.OrchestratorConfigBinpackingDisruptionBudgetArgs
{
Nodes = "string",
Reasons = new[]
{
"string",
},
Schedule = new Harness.Cluster.Inputs.OrchestratorConfigBinpackingDisruptionBudgetScheduleArgs
{
Duration = "string",
Frequency = "string",
},
},
},
Criteria = "string",
Delay = "string",
},
PodEviction = new Harness.Cluster.Inputs.OrchestratorConfigBinpackingPodEvictionArgs
{
Threshold = new Harness.Cluster.Inputs.OrchestratorConfigBinpackingPodEvictionThresholdArgs
{
Cpu = 0,
Memory = 0,
},
},
},
NodePreferences = new Harness.Cluster.Inputs.OrchestratorConfigNodePreferencesArgs
{
ReverseFallbackInterval = "string",
Ttl = "string",
},
});
example, err := cluster.NewOrchestratorConfig(ctx, "orchestratorConfigResource", &cluster.OrchestratorConfigArgs{
Distribution: &cluster.OrchestratorConfigDistributionArgs{
OndemandReplicaPercentage: pulumi.Float64(0),
BaseOndemandCapacity: pulumi.Int(0),
Selector: pulumi.String("string"),
Strategy: pulumi.String("string"),
},
OrchestratorId: pulumi.String("string"),
Binpacking: &cluster.OrchestratorConfigBinpackingArgs{
Disruption: &cluster.OrchestratorConfigBinpackingDisruptionArgs{
Budgets: cluster.OrchestratorConfigBinpackingDisruptionBudgetArray{
&cluster.OrchestratorConfigBinpackingDisruptionBudgetArgs{
Nodes: pulumi.String("string"),
Reasons: pulumi.StringArray{
pulumi.String("string"),
},
Schedule: &cluster.OrchestratorConfigBinpackingDisruptionBudgetScheduleArgs{
Duration: pulumi.String("string"),
Frequency: pulumi.String("string"),
},
},
},
Criteria: pulumi.String("string"),
Delay: pulumi.String("string"),
},
PodEviction: &cluster.OrchestratorConfigBinpackingPodEvictionArgs{
Threshold: &cluster.OrchestratorConfigBinpackingPodEvictionThresholdArgs{
Cpu: pulumi.Float64(0),
Memory: pulumi.Float64(0),
},
},
},
NodePreferences: &cluster.OrchestratorConfigNodePreferencesArgs{
ReverseFallbackInterval: pulumi.String("string"),
Ttl: pulumi.String("string"),
},
})
var orchestratorConfigResource = new OrchestratorConfig("orchestratorConfigResource", OrchestratorConfigArgs.builder()
.distribution(OrchestratorConfigDistributionArgs.builder()
.ondemandReplicaPercentage(0.0)
.baseOndemandCapacity(0)
.selector("string")
.strategy("string")
.build())
.orchestratorId("string")
.binpacking(OrchestratorConfigBinpackingArgs.builder()
.disruption(OrchestratorConfigBinpackingDisruptionArgs.builder()
.budgets(OrchestratorConfigBinpackingDisruptionBudgetArgs.builder()
.nodes("string")
.reasons("string")
.schedule(OrchestratorConfigBinpackingDisruptionBudgetScheduleArgs.builder()
.duration("string")
.frequency("string")
.build())
.build())
.criteria("string")
.delay("string")
.build())
.podEviction(OrchestratorConfigBinpackingPodEvictionArgs.builder()
.threshold(OrchestratorConfigBinpackingPodEvictionThresholdArgs.builder()
.cpu(0.0)
.memory(0.0)
.build())
.build())
.build())
.nodePreferences(OrchestratorConfigNodePreferencesArgs.builder()
.reverseFallbackInterval("string")
.ttl("string")
.build())
.build());
orchestrator_config_resource = harness.cluster.OrchestratorConfig("orchestratorConfigResource",
distribution={
"ondemand_replica_percentage": 0,
"base_ondemand_capacity": 0,
"selector": "string",
"strategy": "string",
},
orchestrator_id="string",
binpacking={
"disruption": {
"budgets": [{
"nodes": "string",
"reasons": ["string"],
"schedule": {
"duration": "string",
"frequency": "string",
},
}],
"criteria": "string",
"delay": "string",
},
"pod_eviction": {
"threshold": {
"cpu": 0,
"memory": 0,
},
},
},
node_preferences={
"reverse_fallback_interval": "string",
"ttl": "string",
})
const orchestratorConfigResource = new harness.cluster.OrchestratorConfig("orchestratorConfigResource", {
distribution: {
ondemandReplicaPercentage: 0,
baseOndemandCapacity: 0,
selector: "string",
strategy: "string",
},
orchestratorId: "string",
binpacking: {
disruption: {
budgets: [{
nodes: "string",
reasons: ["string"],
schedule: {
duration: "string",
frequency: "string",
},
}],
criteria: "string",
delay: "string",
},
podEviction: {
threshold: {
cpu: 0,
memory: 0,
},
},
},
nodePreferences: {
reverseFallbackInterval: "string",
ttl: "string",
},
});
type: harness:cluster:OrchestratorConfig
properties:
binpacking:
disruption:
budgets:
- nodes: string
reasons:
- string
schedule:
duration: string
frequency: string
criteria: string
delay: string
podEviction:
threshold:
cpu: 0
memory: 0
distribution:
baseOndemandCapacity: 0
ondemandReplicaPercentage: 0
selector: string
strategy: string
nodePreferences:
reverseFallbackInterval: string
ttl: string
orchestratorId: string
OrchestratorConfig 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 OrchestratorConfig resource accepts the following input properties:
- Distribution
Orchestrator
Config Distribution - Spot and Ondemand Distribution Preferences for workload replicas
- Orchestrator
Id string - ID of the Cluster Orchestrator Object
- Binpacking
Orchestrator
Config Binpacking - Binpacking preferences for Cluster Orchestrator
- Node
Preferences OrchestratorConfig Node Preferences - Node preferences for Cluster Orchestrator
- Distribution
Orchestrator
Config Distribution Args - Spot and Ondemand Distribution Preferences for workload replicas
- Orchestrator
Id string - ID of the Cluster Orchestrator Object
- Binpacking
Orchestrator
Config Binpacking Args - Binpacking preferences for Cluster Orchestrator
- Node
Preferences OrchestratorConfig Node Preferences Args - Node preferences for Cluster Orchestrator
- distribution
Orchestrator
Config Distribution - Spot and Ondemand Distribution Preferences for workload replicas
- orchestrator
Id String - ID of the Cluster Orchestrator Object
- binpacking
Orchestrator
Config Binpacking - Binpacking preferences for Cluster Orchestrator
- node
Preferences OrchestratorConfig Node Preferences - Node preferences for Cluster Orchestrator
- distribution
Orchestrator
Config Distribution - Spot and Ondemand Distribution Preferences for workload replicas
- orchestrator
Id string - ID of the Cluster Orchestrator Object
- binpacking
Orchestrator
Config Binpacking - Binpacking preferences for Cluster Orchestrator
- node
Preferences OrchestratorConfig Node Preferences - Node preferences for Cluster Orchestrator
- distribution
Orchestrator
Config Distribution Args - Spot and Ondemand Distribution Preferences for workload replicas
- orchestrator_
id str - ID of the Cluster Orchestrator Object
- binpacking
Orchestrator
Config Binpacking Args - Binpacking preferences for Cluster Orchestrator
- node_
preferences OrchestratorConfig Node Preferences Args - Node preferences for Cluster Orchestrator
- distribution Property Map
- Spot and Ondemand Distribution Preferences for workload replicas
- orchestrator
Id String - ID of the Cluster Orchestrator Object
- binpacking Property Map
- Binpacking preferences for Cluster Orchestrator
- node
Preferences Property Map - Node preferences for Cluster Orchestrator
Outputs
All input properties are implicitly available as output properties. Additionally, the OrchestratorConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing OrchestratorConfig Resource
Get an existing OrchestratorConfig 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?: OrchestratorConfigState, opts?: CustomResourceOptions): OrchestratorConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
binpacking: Optional[OrchestratorConfigBinpackingArgs] = None,
distribution: Optional[OrchestratorConfigDistributionArgs] = None,
node_preferences: Optional[OrchestratorConfigNodePreferencesArgs] = None,
orchestrator_id: Optional[str] = None) -> OrchestratorConfig
func GetOrchestratorConfig(ctx *Context, name string, id IDInput, state *OrchestratorConfigState, opts ...ResourceOption) (*OrchestratorConfig, error)
public static OrchestratorConfig Get(string name, Input<string> id, OrchestratorConfigState? state, CustomResourceOptions? opts = null)
public static OrchestratorConfig get(String name, Output<String> id, OrchestratorConfigState state, CustomResourceOptions options)
resources: _: type: harness:cluster:OrchestratorConfig 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.
- Binpacking
Orchestrator
Config Binpacking - Binpacking preferences for Cluster Orchestrator
- Distribution
Orchestrator
Config Distribution - Spot and Ondemand Distribution Preferences for workload replicas
- Node
Preferences OrchestratorConfig Node Preferences - Node preferences for Cluster Orchestrator
- Orchestrator
Id string - ID of the Cluster Orchestrator Object
- Binpacking
Orchestrator
Config Binpacking Args - Binpacking preferences for Cluster Orchestrator
- Distribution
Orchestrator
Config Distribution Args - Spot and Ondemand Distribution Preferences for workload replicas
- Node
Preferences OrchestratorConfig Node Preferences Args - Node preferences for Cluster Orchestrator
- Orchestrator
Id string - ID of the Cluster Orchestrator Object
- binpacking
Orchestrator
Config Binpacking - Binpacking preferences for Cluster Orchestrator
- distribution
Orchestrator
Config Distribution - Spot and Ondemand Distribution Preferences for workload replicas
- node
Preferences OrchestratorConfig Node Preferences - Node preferences for Cluster Orchestrator
- orchestrator
Id String - ID of the Cluster Orchestrator Object
- binpacking
Orchestrator
Config Binpacking - Binpacking preferences for Cluster Orchestrator
- distribution
Orchestrator
Config Distribution - Spot and Ondemand Distribution Preferences for workload replicas
- node
Preferences OrchestratorConfig Node Preferences - Node preferences for Cluster Orchestrator
- orchestrator
Id string - ID of the Cluster Orchestrator Object
- binpacking
Orchestrator
Config Binpacking Args - Binpacking preferences for Cluster Orchestrator
- distribution
Orchestrator
Config Distribution Args - Spot and Ondemand Distribution Preferences for workload replicas
- node_
preferences OrchestratorConfig Node Preferences Args - Node preferences for Cluster Orchestrator
- orchestrator_
id str - ID of the Cluster Orchestrator Object
- binpacking Property Map
- Binpacking preferences for Cluster Orchestrator
- distribution Property Map
- Spot and Ondemand Distribution Preferences for workload replicas
- node
Preferences Property Map - Node preferences for Cluster Orchestrator
- orchestrator
Id String - ID of the Cluster Orchestrator Object
Supporting Types
OrchestratorConfigBinpacking, OrchestratorConfigBinpackingArgs
- Disruption
Orchestrator
Config Binpacking Disruption - Harness disruption configuration
- Pod
Eviction OrchestratorConfig Binpacking Pod Eviction - Harness Pod Evictor Configuration
- Disruption
Orchestrator
Config Binpacking Disruption - Harness disruption configuration
- Pod
Eviction OrchestratorConfig Binpacking Pod Eviction - Harness Pod Evictor Configuration
- disruption
Orchestrator
Config Binpacking Disruption - Harness disruption configuration
- pod
Eviction OrchestratorConfig Binpacking Pod Eviction - Harness Pod Evictor Configuration
- disruption
Orchestrator
Config Binpacking Disruption - Harness disruption configuration
- pod
Eviction OrchestratorConfig Binpacking Pod Eviction - Harness Pod Evictor Configuration
- disruption
Orchestrator
Config Binpacking Disruption - Harness disruption configuration
- pod_
eviction OrchestratorConfig Binpacking Pod Eviction - Harness Pod Evictor Configuration
- disruption Property Map
- Harness disruption configuration
- pod
Eviction Property Map - Harness Pod Evictor Configuration
OrchestratorConfigBinpackingDisruption, OrchestratorConfigBinpackingDisruptionArgs
- Budgets
List<Orchestrator
Config Binpacking Disruption Budget> - Budgets for disruption
- Criteria string
- Criteria for considering a nodes for disruption
- Delay string
- Deletion delay
- Budgets
[]Orchestrator
Config Binpacking Disruption Budget - Budgets for disruption
- Criteria string
- Criteria for considering a nodes for disruption
- Delay string
- Deletion delay
- budgets
List<Orchestrator
Config Binpacking Disruption Budget> - Budgets for disruption
- criteria String
- Criteria for considering a nodes for disruption
- delay String
- Deletion delay
- budgets
Orchestrator
Config Binpacking Disruption Budget[] - Budgets for disruption
- criteria string
- Criteria for considering a nodes for disruption
- delay string
- Deletion delay
- budgets
Sequence[Orchestrator
Config Binpacking Disruption Budget] - Budgets for disruption
- criteria str
- Criteria for considering a nodes for disruption
- delay str
- Deletion delay
- budgets List<Property Map>
- Budgets for disruption
- criteria String
- Criteria for considering a nodes for disruption
- delay String
- Deletion delay
OrchestratorConfigBinpackingDisruptionBudget, OrchestratorConfigBinpackingDisruptionBudgetArgs
- Nodes string
- Number or percentage of Nodes to consider for disruption
- Reasons List<string>
- Reasons for disruption
- Schedule
Orchestrator
Config Binpacking Disruption Budget Schedule - Schedule for disruption budget
- Nodes string
- Number or percentage of Nodes to consider for disruption
- Reasons []string
- Reasons for disruption
- Schedule
Orchestrator
Config Binpacking Disruption Budget Schedule - Schedule for disruption budget
- nodes String
- Number or percentage of Nodes to consider for disruption
- reasons List<String>
- Reasons for disruption
- schedule
Orchestrator
Config Binpacking Disruption Budget Schedule - Schedule for disruption budget
- nodes string
- Number or percentage of Nodes to consider for disruption
- reasons string[]
- Reasons for disruption
- schedule
Orchestrator
Config Binpacking Disruption Budget Schedule - Schedule for disruption budget
- nodes str
- Number or percentage of Nodes to consider for disruption
- reasons Sequence[str]
- Reasons for disruption
- schedule
Orchestrator
Config Binpacking Disruption Budget Schedule - Schedule for disruption budget
- nodes String
- Number or percentage of Nodes to consider for disruption
- reasons List<String>
- Reasons for disruption
- schedule Property Map
- Schedule for disruption budget
OrchestratorConfigBinpackingDisruptionBudgetSchedule, OrchestratorConfigBinpackingDisruptionBudgetScheduleArgs
OrchestratorConfigBinpackingPodEviction, OrchestratorConfigBinpackingPodEvictionArgs
- Threshold
Orchestrator
Config Binpacking Pod Eviction Threshold - Minimum Threshold for considering a node as underutilized
- Threshold
Orchestrator
Config Binpacking Pod Eviction Threshold - Minimum Threshold for considering a node as underutilized
- threshold
Orchestrator
Config Binpacking Pod Eviction Threshold - Minimum Threshold for considering a node as underutilized
- threshold
Orchestrator
Config Binpacking Pod Eviction Threshold - Minimum Threshold for considering a node as underutilized
- threshold
Orchestrator
Config Binpacking Pod Eviction Threshold - Minimum Threshold for considering a node as underutilized
- threshold Property Map
- Minimum Threshold for considering a node as underutilized
OrchestratorConfigBinpackingPodEvictionThreshold, OrchestratorConfigBinpackingPodEvictionThresholdArgs
OrchestratorConfigDistribution, OrchestratorConfigDistributionArgs
- Ondemand
Replica doublePercentage - Percentage of on-demand replicas required for workloads
- Base
Ondemand intCapacity - Number of minimum ondemand replicas required for workloads
- Selector string
- Selector for choosing workloads for distribution
- Strategy string
- Strategy for choosing spot nodes for cluster
- Ondemand
Replica float64Percentage - Percentage of on-demand replicas required for workloads
- Base
Ondemand intCapacity - Number of minimum ondemand replicas required for workloads
- Selector string
- Selector for choosing workloads for distribution
- Strategy string
- Strategy for choosing spot nodes for cluster
- ondemand
Replica DoublePercentage - Percentage of on-demand replicas required for workloads
- base
Ondemand IntegerCapacity - Number of minimum ondemand replicas required for workloads
- selector String
- Selector for choosing workloads for distribution
- strategy String
- Strategy for choosing spot nodes for cluster
- ondemand
Replica numberPercentage - Percentage of on-demand replicas required for workloads
- base
Ondemand numberCapacity - Number of minimum ondemand replicas required for workloads
- selector string
- Selector for choosing workloads for distribution
- strategy string
- Strategy for choosing spot nodes for cluster
- ondemand_
replica_ floatpercentage - Percentage of on-demand replicas required for workloads
- base_
ondemand_ intcapacity - Number of minimum ondemand replicas required for workloads
- selector str
- Selector for choosing workloads for distribution
- strategy str
- Strategy for choosing spot nodes for cluster
- ondemand
Replica NumberPercentage - Percentage of on-demand replicas required for workloads
- base
Ondemand NumberCapacity - Number of minimum ondemand replicas required for workloads
- selector String
- Selector for choosing workloads for distribution
- strategy String
- Strategy for choosing spot nodes for cluster
OrchestratorConfigNodePreferences, OrchestratorConfigNodePreferencesArgs
- Reverse
Fallback stringInterval - Reverse fallback interval
- Ttl string
- TTL for nodes
- Reverse
Fallback stringInterval - Reverse fallback interval
- Ttl string
- TTL for nodes
- reverse
Fallback StringInterval - Reverse fallback interval
- ttl String
- TTL for nodes
- reverse
Fallback stringInterval - Reverse fallback interval
- ttl string
- TTL for nodes
- reverse_
fallback_ strinterval - Reverse fallback interval
- ttl str
- TTL for nodes
- reverse
Fallback StringInterval - Reverse fallback interval
- ttl String
- TTL for nodes
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.