Elastigroup
Create a Elastigroup Resource
new Elastigroup(name: string, args: ElastigroupArgs, opts?: CustomResourceOptions);def Elastigroup(resource_name, opts=None, backend_services=None, cluster_id=None, cluster_zone_name=None, desired_capacity=None, disks=None, draining_timeout=None, fallback_to_ondemand=None, gpu=None, instance_types_customs=None, instance_types_ondemand=None, instance_types_preemptibles=None, integration_docker_swarm=None, integration_gke=None, ip_forwarding=None, labels=None, max_size=None, metadatas=None, min_size=None, name=None, network_interfaces=None, node_image=None, ondemand_count=None, preemptible_percentage=None, scaling_down_policies=None, scaling_up_policies=None, service_account=None, shutdown_script=None, startup_script=None, tags=None, __props__=None);func NewElastigroup(ctx *Context, name string, args ElastigroupArgs, opts ...ResourceOption) (*Elastigroup, error)public Elastigroup(string name, ElastigroupArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ElastigroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ElastigroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElastigroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Elastigroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Elastigroup resource accepts the following input properties:
- Cluster
Zone stringName The zone where the cluster is hosted.
- Desired
Capacity int - Backend
Services List<Pulumi.Spot Inst. Gke. Inputs. Elastigroup Backend Service Args> - Cluster
Id string The name of the GKE cluster you wish to import.
- Disks
List<Pulumi.
Spot Inst. Gke. Inputs. Elastigroup Disk Args> - Draining
Timeout int - Fallback
To boolOndemand - Gpu
List<Pulumi.
Spot Inst. Gke. Inputs. Elastigroup Gpu Args> - Instance
Types List<Pulumi.Customs Spot Inst. Gke. Inputs. Elastigroup Instance Types Custom Args> - Instance
Types stringOndemand - Instance
Types List<string>Preemptibles - Integration
Docker Pulumi.Swarm Spot Inst. Gke. Inputs. Elastigroup Integration Docker Swarm Args - Integration
Gke Pulumi.Spot Inst. Gke. Inputs. Elastigroup Integration Gke Args - Ip
Forwarding bool - Labels
List<Pulumi.
Spot Inst. Gke. Inputs. Elastigroup Label Args> - Max
Size int - Metadatas
List<Pulumi.
Spot Inst. Gke. Inputs. Elastigroup Metadata Args> - Min
Size int - Name string
- Network
Interfaces List<Pulumi.Spot Inst. Gke. Inputs. Elastigroup Network Interface Args> - Node
Image string The image that will be used for the node VMs. Possible values: COS, UBUNTU.
- Ondemand
Count int - Preemptible
Percentage int - Scaling
Down List<Pulumi.Policies Spot Inst. Gke. Inputs. Elastigroup Scaling Down Policy Args> - Scaling
Up List<Pulumi.Policies Spot Inst. Gke. Inputs. Elastigroup Scaling Up Policy Args> - Service
Account string - Shutdown
Script string - Startup
Script string - List<string>
- Cluster
Zone stringName The zone where the cluster is hosted.
- Desired
Capacity int - Backend
Services []ElastigroupBackend Service - Cluster
Id string The name of the GKE cluster you wish to import.
- Disks
[]Elastigroup
Disk - Draining
Timeout int - Fallback
To boolOndemand - Gpu
[]Elastigroup
Gpu - Instance
Types []ElastigroupCustoms Instance Types Custom - Instance
Types stringOndemand - Instance
Types []stringPreemptibles - Integration
Docker ElastigroupSwarm Integration Docker Swarm - Integration
Gke ElastigroupIntegration Gke - Ip
Forwarding bool - Labels
[]Elastigroup
Label - Max
Size int - Metadatas
[]Elastigroup
Metadata - Min
Size int - Name string
- Network
Interfaces []ElastigroupNetwork Interface - Node
Image string The image that will be used for the node VMs. Possible values: COS, UBUNTU.
- Ondemand
Count int - Preemptible
Percentage int - Scaling
Down []ElastigroupPolicies Scaling Down Policy - Scaling
Up []ElastigroupPolicies Scaling Up Policy - Service
Account string - Shutdown
Script string - Startup
Script string - []string
- cluster
Zone stringName The zone where the cluster is hosted.
- desired
Capacity number - backend
Services ElastigroupBackend Service[] - cluster
Id string The name of the GKE cluster you wish to import.
- disks
Elastigroup
Disk[] - draining
Timeout number - fallback
To booleanOndemand - gpu
Elastigroup
Gpu[] - instance
Types ElastigroupCustoms Instance Types Custom[] - instance
Types stringOndemand - instance
Types string[]Preemptibles - integration
Docker ElastigroupSwarm Integration Docker Swarm - integration
Gke ElastigroupIntegration Gke - ip
Forwarding boolean - labels
Elastigroup
Label[] - max
Size number - metadatas
Elastigroup
Metadata[] - min
Size number - name string
- network
Interfaces ElastigroupNetwork Interface[] - node
Image string The image that will be used for the node VMs. Possible values: COS, UBUNTU.
- ondemand
Count number - preemptible
Percentage number - scaling
Down ElastigroupPolicies Scaling Down Policy[] - scaling
Up ElastigroupPolicies Scaling Up Policy[] - service
Account string - shutdown
Script string - startup
Script string - string[]
- cluster_
zone_ strname The zone where the cluster is hosted.
- desired_
capacity float - backend_
services List[ElastigroupBackend Service] - cluster_
id str The name of the GKE cluster you wish to import.
- disks
List[Elastigroup
Disk] - draining_
timeout float - fallback_
to_ boolondemand - gpu
List[Elastigroup
Gpu] - instance_
types_ List[Elastigroupcustoms Instance Types Custom] - instance_
types_ strondemand - instance_
types_ List[str]preemptibles - integration_
docker_ Dict[Elastigroupswarm Integration Docker Swarm] - integration_
gke Dict[ElastigroupIntegration Gke] - ip_
forwarding bool - labels
List[Elastigroup
Label] - max_
size float - metadatas
List[Elastigroup
Metadata] - min_
size float - name str
- network_
interfaces List[ElastigroupNetwork Interface] - node_
image str The image that will be used for the node VMs. Possible values: COS, UBUNTU.
- ondemand_
count float - preemptible_
percentage float - scaling_
down_ List[Elastigrouppolicies Scaling Down Policy] - scaling_
up_ List[Elastigrouppolicies Scaling Up Policy] - service_
account str - shutdown_
script str - startup_
script str - List[str]
Outputs
All input properties are implicitly available as output properties. Additionally, the Elastigroup resource produces the following output properties:
Look up an Existing Elastigroup Resource
Get an existing Elastigroup 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?: ElastigroupState, opts?: CustomResourceOptions): Elastigroupstatic get(resource_name, id, opts=None, backend_services=None, cluster_id=None, cluster_zone_name=None, desired_capacity=None, disks=None, draining_timeout=None, fallback_to_ondemand=None, gpu=None, instance_types_customs=None, instance_types_ondemand=None, instance_types_preemptibles=None, integration_docker_swarm=None, integration_gke=None, ip_forwarding=None, labels=None, max_size=None, metadatas=None, min_size=None, name=None, network_interfaces=None, node_image=None, ondemand_count=None, preemptible_percentage=None, scaling_down_policies=None, scaling_up_policies=None, service_account=None, shutdown_script=None, startup_script=None, tags=None, __props__=None);func GetElastigroup(ctx *Context, name string, id IDInput, state *ElastigroupState, opts ...ResourceOption) (*Elastigroup, error)public static Elastigroup Get(string name, Input<string> id, ElastigroupState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Backend
Services List<Pulumi.Spot Inst. Gke. Inputs. Elastigroup Backend Service Args> - Cluster
Id string The name of the GKE cluster you wish to import.
- Cluster
Zone stringName The zone where the cluster is hosted.
- Desired
Capacity int - Disks
List<Pulumi.
Spot Inst. Gke. Inputs. Elastigroup Disk Args> - Draining
Timeout int - Fallback
To boolOndemand - Gpu
List<Pulumi.
Spot Inst. Gke. Inputs. Elastigroup Gpu Args> - Instance
Types List<Pulumi.Customs Spot Inst. Gke. Inputs. Elastigroup Instance Types Custom Args> - Instance
Types stringOndemand - Instance
Types List<string>Preemptibles - Integration
Docker Pulumi.Swarm Spot Inst. Gke. Inputs. Elastigroup Integration Docker Swarm Args - Integration
Gke Pulumi.Spot Inst. Gke. Inputs. Elastigroup Integration Gke Args - Ip
Forwarding bool - Labels
List<Pulumi.
Spot Inst. Gke. Inputs. Elastigroup Label Args> - Max
Size int - Metadatas
List<Pulumi.
Spot Inst. Gke. Inputs. Elastigroup Metadata Args> - Min
Size int - Name string
- Network
Interfaces List<Pulumi.Spot Inst. Gke. Inputs. Elastigroup Network Interface Args> - Node
Image string The image that will be used for the node VMs. Possible values: COS, UBUNTU.
- Ondemand
Count int - Preemptible
Percentage int - Scaling
Down List<Pulumi.Policies Spot Inst. Gke. Inputs. Elastigroup Scaling Down Policy Args> - Scaling
Up List<Pulumi.Policies Spot Inst. Gke. Inputs. Elastigroup Scaling Up Policy Args> - Service
Account string - Shutdown
Script string - Startup
Script string - List<string>
- Backend
Services []ElastigroupBackend Service - Cluster
Id string The name of the GKE cluster you wish to import.
- Cluster
Zone stringName The zone where the cluster is hosted.
- Desired
Capacity int - Disks
[]Elastigroup
Disk - Draining
Timeout int - Fallback
To boolOndemand - Gpu
[]Elastigroup
Gpu - Instance
Types []ElastigroupCustoms Instance Types Custom - Instance
Types stringOndemand - Instance
Types []stringPreemptibles - Integration
Docker ElastigroupSwarm Integration Docker Swarm - Integration
Gke ElastigroupIntegration Gke - Ip
Forwarding bool - Labels
[]Elastigroup
Label - Max
Size int - Metadatas
[]Elastigroup
Metadata - Min
Size int - Name string
- Network
Interfaces []ElastigroupNetwork Interface - Node
Image string The image that will be used for the node VMs. Possible values: COS, UBUNTU.
- Ondemand
Count int - Preemptible
Percentage int - Scaling
Down []ElastigroupPolicies Scaling Down Policy - Scaling
Up []ElastigroupPolicies Scaling Up Policy - Service
Account string - Shutdown
Script string - Startup
Script string - []string
- backend
Services ElastigroupBackend Service[] - cluster
Id string The name of the GKE cluster you wish to import.
- cluster
Zone stringName The zone where the cluster is hosted.
- desired
Capacity number - disks
Elastigroup
Disk[] - draining
Timeout number - fallback
To booleanOndemand - gpu
Elastigroup
Gpu[] - instance
Types ElastigroupCustoms Instance Types Custom[] - instance
Types stringOndemand - instance
Types string[]Preemptibles - integration
Docker ElastigroupSwarm Integration Docker Swarm - integration
Gke ElastigroupIntegration Gke - ip
Forwarding boolean - labels
Elastigroup
Label[] - max
Size number - metadatas
Elastigroup
Metadata[] - min
Size number - name string
- network
Interfaces ElastigroupNetwork Interface[] - node
Image string The image that will be used for the node VMs. Possible values: COS, UBUNTU.
- ondemand
Count number - preemptible
Percentage number - scaling
Down ElastigroupPolicies Scaling Down Policy[] - scaling
Up ElastigroupPolicies Scaling Up Policy[] - service
Account string - shutdown
Script string - startup
Script string - string[]
- backend_
services List[ElastigroupBackend Service] - cluster_
id str The name of the GKE cluster you wish to import.
- cluster_
zone_ strname The zone where the cluster is hosted.
- desired_
capacity float - disks
List[Elastigroup
Disk] - draining_
timeout float - fallback_
to_ boolondemand - gpu
List[Elastigroup
Gpu] - instance_
types_ List[Elastigroupcustoms Instance Types Custom] - instance_
types_ strondemand - instance_
types_ List[str]preemptibles - integration_
docker_ Dict[Elastigroupswarm Integration Docker Swarm] - integration_
gke Dict[ElastigroupIntegration Gke] - ip_
forwarding bool - labels
List[Elastigroup
Label] - max_
size float - metadatas
List[Elastigroup
Metadata] - min_
size float - name str
- network_
interfaces List[ElastigroupNetwork Interface] - node_
image str The image that will be used for the node VMs. Possible values: COS, UBUNTU.
- ondemand_
count float - preemptible_
percentage float - scaling_
down_ List[Elastigrouppolicies Scaling Down Policy] - scaling_
up_ List[Elastigrouppolicies Scaling Up Policy] - service_
account str - shutdown_
script str - startup_
script str - List[str]
Supporting Types
ElastigroupBackendService
ElastigroupBackendServiceNamedPort
ElastigroupDisk
ElastigroupDiskInitializeParam
ElastigroupGpu
ElastigroupInstanceTypesCustom
ElastigroupIntegrationDockerSwarm
ElastigroupIntegrationGke
- Auto
Update bool - Autoscale
Cooldown int - Autoscale
Down Pulumi.Spot Inst. Gke. Inputs. Elastigroup Integration Gke Autoscale Down Args - Autoscale
Headroom Pulumi.Spot Inst. Gke. Inputs. Elastigroup Integration Gke Autoscale Headroom Args - Autoscale
Is boolAuto Config - Autoscale
Is boolEnabled - Autoscale
Labels List<Pulumi.Spot Inst. Gke. Inputs. Elastigroup Integration Gke Autoscale Label Args> - Cluster
Id string The name of the GKE cluster you wish to import.
- Location string
- Auto
Update bool - Autoscale
Cooldown int - Autoscale
Down ElastigroupIntegration Gke Autoscale Down - Autoscale
Headroom ElastigroupIntegration Gke Autoscale Headroom - Autoscale
Is boolAuto Config - Autoscale
Is boolEnabled - Autoscale
Labels []ElastigroupIntegration Gke Autoscale Label - Cluster
Id string The name of the GKE cluster you wish to import.
- Location string
- auto
Update boolean - autoscale
Cooldown number - autoscale
Down ElastigroupIntegration Gke Autoscale Down - autoscale
Headroom ElastigroupIntegration Gke Autoscale Headroom - autoscale
Is booleanAuto Config - autoscale
Is booleanEnabled - autoscale
Labels ElastigroupIntegration Gke Autoscale Label[] - cluster
Id string The name of the GKE cluster you wish to import.
- location string
- auto
Update bool - autoscale
Cooldown float - autoscale
Down Dict[ElastigroupIntegration Gke Autoscale Down] - autoscale
Headroom Dict[ElastigroupIntegration Gke Autoscale Headroom] - autoscale
Is boolAuto Config - autoscale
Is boolEnabled - autoscale
Labels List[ElastigroupIntegration Gke Autoscale Label] - cluster_
id str The name of the GKE cluster you wish to import.
- location str
ElastigroupIntegrationGkeAutoscaleDown
ElastigroupIntegrationGkeAutoscaleHeadroom
ElastigroupIntegrationGkeAutoscaleLabel
ElastigroupLabel
ElastigroupMetadata
ElastigroupNetworkInterface
ElastigroupNetworkInterfaceAccessConfig
ElastigroupNetworkInterfaceAliasIpRange
ElastigroupScalingDownPolicy
ElastigroupScalingDownPolicyDimension
ElastigroupScalingUpPolicy
ElastigroupScalingUpPolicyDimension
Package Details
- Repository
- https://github.com/pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
spotinstTerraform Provider.