Elastigroup

Create a Elastigroup Resource

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:

ClusterZoneName string

The zone where the cluster is hosted.

DesiredCapacity int
BackendServices List<Pulumi.SpotInst.Gke.Inputs.ElastigroupBackendServiceArgs>
ClusterId string

The name of the GKE cluster you wish to import.

Deprecated: Please define cluster_id under integration_gke

Disks List<Pulumi.SpotInst.Gke.Inputs.ElastigroupDiskArgs>
DrainingTimeout int
FallbackToOndemand bool
Gpu List<Pulumi.SpotInst.Gke.Inputs.ElastigroupGpuArgs>
InstanceTypesCustoms List<Pulumi.SpotInst.Gke.Inputs.ElastigroupInstanceTypesCustomArgs>
InstanceTypesOndemand string
InstanceTypesPreemptibles List<string>
IntegrationDockerSwarm Pulumi.SpotInst.Gke.Inputs.ElastigroupIntegrationDockerSwarmArgs
IntegrationGke Pulumi.SpotInst.Gke.Inputs.ElastigroupIntegrationGkeArgs
IpForwarding bool
Labels List<Pulumi.SpotInst.Gke.Inputs.ElastigroupLabelArgs>
MaxSize int
Metadatas List<Pulumi.SpotInst.Gke.Inputs.ElastigroupMetadataArgs>
MinSize int
Name string
NetworkInterfaces List<Pulumi.SpotInst.Gke.Inputs.ElastigroupNetworkInterfaceArgs>
NodeImage string

The image that will be used for the node VMs. Possible values: COS, UBUNTU.

OndemandCount int
PreemptiblePercentage int
ScalingDownPolicies List<Pulumi.SpotInst.Gke.Inputs.ElastigroupScalingDownPolicyArgs>
ScalingUpPolicies List<Pulumi.SpotInst.Gke.Inputs.ElastigroupScalingUpPolicyArgs>
ServiceAccount string
ShutdownScript string
StartupScript string
Tags List<string>
ClusterZoneName string

The zone where the cluster is hosted.

DesiredCapacity int
BackendServices []ElastigroupBackendService
ClusterId string

The name of the GKE cluster you wish to import.

Deprecated: Please define cluster_id under integration_gke

Disks []ElastigroupDisk
DrainingTimeout int
FallbackToOndemand bool
Gpu []ElastigroupGpu
InstanceTypesCustoms []ElastigroupInstanceTypesCustom
InstanceTypesOndemand string
InstanceTypesPreemptibles []string
IntegrationDockerSwarm ElastigroupIntegrationDockerSwarm
IntegrationGke ElastigroupIntegrationGke
IpForwarding bool
Labels []ElastigroupLabel
MaxSize int
Metadatas []ElastigroupMetadata
MinSize int
Name string
NetworkInterfaces []ElastigroupNetworkInterface
NodeImage string

The image that will be used for the node VMs. Possible values: COS, UBUNTU.

OndemandCount int
PreemptiblePercentage int
ScalingDownPolicies []ElastigroupScalingDownPolicy
ScalingUpPolicies []ElastigroupScalingUpPolicy
ServiceAccount string
ShutdownScript string
StartupScript string
Tags []string
clusterZoneName string

The zone where the cluster is hosted.

desiredCapacity number
backendServices ElastigroupBackendService[]
clusterId string

The name of the GKE cluster you wish to import.

Deprecated: Please define cluster_id under integration_gke

disks ElastigroupDisk[]
drainingTimeout number
fallbackToOndemand boolean
gpu ElastigroupGpu[]
instanceTypesCustoms ElastigroupInstanceTypesCustom[]
instanceTypesOndemand string
instanceTypesPreemptibles string[]
integrationDockerSwarm ElastigroupIntegrationDockerSwarm
integrationGke ElastigroupIntegrationGke
ipForwarding boolean
labels ElastigroupLabel[]
maxSize number
metadatas ElastigroupMetadata[]
minSize number
name string
networkInterfaces ElastigroupNetworkInterface[]
nodeImage string

The image that will be used for the node VMs. Possible values: COS, UBUNTU.

ondemandCount number
preemptiblePercentage number
scalingDownPolicies ElastigroupScalingDownPolicy[]
scalingUpPolicies ElastigroupScalingUpPolicy[]
serviceAccount string
shutdownScript string
startupScript string
tags string[]
cluster_zone_name str

The zone where the cluster is hosted.

desired_capacity float
backend_services List[ElastigroupBackendService]
cluster_id str

The name of the GKE cluster you wish to import.

Deprecated: Please define cluster_id under integration_gke

disks List[ElastigroupDisk]
draining_timeout float
fallback_to_ondemand bool
gpu List[ElastigroupGpu]
instance_types_customs List[ElastigroupInstanceTypesCustom]
instance_types_ondemand str
instance_types_preemptibles List[str]
integration_docker_swarm Dict[ElastigroupIntegrationDockerSwarm]
integration_gke Dict[ElastigroupIntegrationGke]
ip_forwarding bool
labels List[ElastigroupLabel]
max_size float
metadatas List[ElastigroupMetadata]
min_size float
name str
network_interfaces List[ElastigroupNetworkInterface]
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_policies List[ElastigroupScalingDownPolicy]
scaling_up_policies List[ElastigroupScalingUpPolicy]
service_account str
shutdown_script str
startup_script str
tags List[str]

Outputs

All input properties are implicitly available as output properties. Additionally, the Elastigroup 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 str
The provider-assigned unique ID for this managed resource.

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): Elastigroup
static 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:

BackendServices List<Pulumi.SpotInst.Gke.Inputs.ElastigroupBackendServiceArgs>
ClusterId string

The name of the GKE cluster you wish to import.

Deprecated: Please define cluster_id under integration_gke

ClusterZoneName string

The zone where the cluster is hosted.

DesiredCapacity int
Disks List<Pulumi.SpotInst.Gke.Inputs.ElastigroupDiskArgs>
DrainingTimeout int
FallbackToOndemand bool
Gpu List<Pulumi.SpotInst.Gke.Inputs.ElastigroupGpuArgs>
InstanceTypesCustoms List<Pulumi.SpotInst.Gke.Inputs.ElastigroupInstanceTypesCustomArgs>
InstanceTypesOndemand string
InstanceTypesPreemptibles List<string>
IntegrationDockerSwarm Pulumi.SpotInst.Gke.Inputs.ElastigroupIntegrationDockerSwarmArgs
IntegrationGke Pulumi.SpotInst.Gke.Inputs.ElastigroupIntegrationGkeArgs
IpForwarding bool
Labels List<Pulumi.SpotInst.Gke.Inputs.ElastigroupLabelArgs>
MaxSize int
Metadatas List<Pulumi.SpotInst.Gke.Inputs.ElastigroupMetadataArgs>
MinSize int
Name string
NetworkInterfaces List<Pulumi.SpotInst.Gke.Inputs.ElastigroupNetworkInterfaceArgs>
NodeImage string

The image that will be used for the node VMs. Possible values: COS, UBUNTU.

OndemandCount int
PreemptiblePercentage int
ScalingDownPolicies List<Pulumi.SpotInst.Gke.Inputs.ElastigroupScalingDownPolicyArgs>
ScalingUpPolicies List<Pulumi.SpotInst.Gke.Inputs.ElastigroupScalingUpPolicyArgs>
ServiceAccount string
ShutdownScript string
StartupScript string
Tags List<string>
BackendServices []ElastigroupBackendService
ClusterId string

The name of the GKE cluster you wish to import.

Deprecated: Please define cluster_id under integration_gke

ClusterZoneName string

The zone where the cluster is hosted.

DesiredCapacity int
Disks []ElastigroupDisk
DrainingTimeout int
FallbackToOndemand bool
Gpu []ElastigroupGpu
InstanceTypesCustoms []ElastigroupInstanceTypesCustom
InstanceTypesOndemand string
InstanceTypesPreemptibles []string
IntegrationDockerSwarm ElastigroupIntegrationDockerSwarm
IntegrationGke ElastigroupIntegrationGke
IpForwarding bool
Labels []ElastigroupLabel
MaxSize int
Metadatas []ElastigroupMetadata
MinSize int
Name string
NetworkInterfaces []ElastigroupNetworkInterface
NodeImage string

The image that will be used for the node VMs. Possible values: COS, UBUNTU.

OndemandCount int
PreemptiblePercentage int
ScalingDownPolicies []ElastigroupScalingDownPolicy
ScalingUpPolicies []ElastigroupScalingUpPolicy
ServiceAccount string
ShutdownScript string
StartupScript string
Tags []string
backendServices ElastigroupBackendService[]
clusterId string

The name of the GKE cluster you wish to import.

Deprecated: Please define cluster_id under integration_gke

clusterZoneName string

The zone where the cluster is hosted.

desiredCapacity number
disks ElastigroupDisk[]
drainingTimeout number
fallbackToOndemand boolean
gpu ElastigroupGpu[]
instanceTypesCustoms ElastigroupInstanceTypesCustom[]
instanceTypesOndemand string
instanceTypesPreemptibles string[]
integrationDockerSwarm ElastigroupIntegrationDockerSwarm
integrationGke ElastigroupIntegrationGke
ipForwarding boolean
labels ElastigroupLabel[]
maxSize number
metadatas ElastigroupMetadata[]
minSize number
name string
networkInterfaces ElastigroupNetworkInterface[]
nodeImage string

The image that will be used for the node VMs. Possible values: COS, UBUNTU.

ondemandCount number
preemptiblePercentage number
scalingDownPolicies ElastigroupScalingDownPolicy[]
scalingUpPolicies ElastigroupScalingUpPolicy[]
serviceAccount string
shutdownScript string
startupScript string
tags string[]
backend_services List[ElastigroupBackendService]
cluster_id str

The name of the GKE cluster you wish to import.

Deprecated: Please define cluster_id under integration_gke

cluster_zone_name str

The zone where the cluster is hosted.

desired_capacity float
disks List[ElastigroupDisk]
draining_timeout float
fallback_to_ondemand bool
gpu List[ElastigroupGpu]
instance_types_customs List[ElastigroupInstanceTypesCustom]
instance_types_ondemand str
instance_types_preemptibles List[str]
integration_docker_swarm Dict[ElastigroupIntegrationDockerSwarm]
integration_gke Dict[ElastigroupIntegrationGke]
ip_forwarding bool
labels List[ElastigroupLabel]
max_size float
metadatas List[ElastigroupMetadata]
min_size float
name str
network_interfaces List[ElastigroupNetworkInterface]
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_policies List[ElastigroupScalingDownPolicy]
scaling_up_policies List[ElastigroupScalingUpPolicy]
service_account str
shutdown_script str
startup_script str
tags List[str]

Supporting Types

ElastigroupBackendService

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

ServiceName string
LocationType string
NamedPorts List<Pulumi.SpotInst.Gke.Inputs.ElastigroupBackendServiceNamedPortArgs>
Scheme string
ServiceName string
LocationType string
NamedPorts []ElastigroupBackendServiceNamedPort
Scheme string
serviceName string
locationType string
namedPorts ElastigroupBackendServiceNamedPort[]
scheme string
serviceName str
locationType str
namedPorts List[ElastigroupBackendServiceNamedPort]
scheme str

ElastigroupBackendServiceNamedPort

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string
Ports List<string>
Name string
Ports []string
name string
ports string[]
name str
ports List[str]

ElastigroupDisk

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

AutoDelete bool
Boot bool
DeviceName string
InitializeParams List<Pulumi.SpotInst.Gke.Inputs.ElastigroupDiskInitializeParamArgs>
Interface string
Mode string
Source string
Type string
AutoDelete bool
Boot bool
DeviceName string
InitializeParams []ElastigroupDiskInitializeParam
Interface string
Mode string
Source string
Type string
autoDelete boolean
boot boolean
deviceName string
initializeParams ElastigroupDiskInitializeParam[]
interface string
mode string
source string
type string
autoDelete bool
boot bool
deviceName str
initializeParams List[ElastigroupDiskInitializeParam]
interface str
mode str
source str
type str

ElastigroupDiskInitializeParam

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

SourceImage string
DiskSizeGb string
DiskType string
SourceImage string
DiskSizeGb string
DiskType string
sourceImage string
diskSizeGb string
diskType string
source_image str
diskSizeGb str
diskType str

ElastigroupGpu

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Count int
Type string
Count int
Type string
count number
type string
count float
type str

ElastigroupInstanceTypesCustom

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

MemoryGib int
Vcpu int
MemoryGib int
Vcpu int
memoryGib number
vcpu number
memoryGib float
vcpu float

ElastigroupIntegrationDockerSwarm

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

MasterHost string
MasterPort int
MasterHost string
MasterPort int
masterHost string
masterPort number
masterHost str
masterPort float

ElastigroupIntegrationGke

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

AutoUpdate bool
AutoscaleCooldown int
AutoscaleDown Pulumi.SpotInst.Gke.Inputs.ElastigroupIntegrationGkeAutoscaleDownArgs
AutoscaleHeadroom Pulumi.SpotInst.Gke.Inputs.ElastigroupIntegrationGkeAutoscaleHeadroomArgs
AutoscaleIsAutoConfig bool
AutoscaleIsEnabled bool
AutoscaleLabels List<Pulumi.SpotInst.Gke.Inputs.ElastigroupIntegrationGkeAutoscaleLabelArgs>
ClusterId string

The name of the GKE cluster you wish to import.

Location string
AutoUpdate bool
AutoscaleCooldown int
AutoscaleDown ElastigroupIntegrationGkeAutoscaleDown
AutoscaleHeadroom ElastigroupIntegrationGkeAutoscaleHeadroom
AutoscaleIsAutoConfig bool
AutoscaleIsEnabled bool
AutoscaleLabels []ElastigroupIntegrationGkeAutoscaleLabel
ClusterId string

The name of the GKE cluster you wish to import.

Location string
autoUpdate boolean
autoscaleCooldown number
autoscaleDown ElastigroupIntegrationGkeAutoscaleDown
autoscaleHeadroom ElastigroupIntegrationGkeAutoscaleHeadroom
autoscaleIsAutoConfig boolean
autoscaleIsEnabled boolean
autoscaleLabels ElastigroupIntegrationGkeAutoscaleLabel[]
clusterId string

The name of the GKE cluster you wish to import.

location string
autoUpdate bool
autoscaleCooldown float
autoscaleDown Dict[ElastigroupIntegrationGkeAutoscaleDown]
autoscaleHeadroom Dict[ElastigroupIntegrationGkeAutoscaleHeadroom]
autoscaleIsAutoConfig bool
autoscaleIsEnabled bool
autoscaleLabels List[ElastigroupIntegrationGkeAutoscaleLabel]
cluster_id str

The name of the GKE cluster you wish to import.

location str

ElastigroupIntegrationGkeAutoscaleDown

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

EvaluationPeriods int
EvaluationPeriods int
evaluationPeriods number
evaluationPeriods float

ElastigroupIntegrationGkeAutoscaleHeadroom

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

CpuPerUnit int
MemoryPerUnit int
NumOfUnits int
CpuPerUnit int
MemoryPerUnit int
NumOfUnits int
cpuPerUnit number
memoryPerUnit number
numOfUnits number
cpuPerUnit float
memoryPerUnit float
numOfUnits float

ElastigroupIntegrationGkeAutoscaleLabel

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Key string
Value string
Key string
Value string
key string
value string
key str
value str

ElastigroupLabel

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Key string
Value string
Key string
Value string
key string
value string
key str
value str

ElastigroupMetadata

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Key string
Value string
Key string
Value string
key string
value string
key str
value str

ElastigroupNetworkInterface

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Network string
AccessConfigs List<Pulumi.SpotInst.Gke.Inputs.ElastigroupNetworkInterfaceAccessConfigArgs>
AliasIpRanges List<Pulumi.SpotInst.Gke.Inputs.ElastigroupNetworkInterfaceAliasIpRangeArgs>
Network string
AccessConfigs []ElastigroupNetworkInterfaceAccessConfig
AliasIpRanges []ElastigroupNetworkInterfaceAliasIpRange
network string
accessConfigs ElastigroupNetworkInterfaceAccessConfig[]
aliasIpRanges ElastigroupNetworkInterfaceAliasIpRange[]
network str
accessConfigs List[ElastigroupNetworkInterfaceAccessConfig]
aliasIpRanges List[ElastigroupNetworkInterfaceAliasIpRange]

ElastigroupNetworkInterfaceAccessConfig

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string
Type string
Name string
Type string
name string
type string
name str
type str

ElastigroupNetworkInterfaceAliasIpRange

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

IpCidrRange string
SubnetworkRangeName string
IpCidrRange string
SubnetworkRangeName string
ipCidrRange string
subnetworkRangeName string
ipCidrRange str
subnetworkRangeName str

ElastigroupScalingDownPolicy

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

MetricName string
Namespace string
PolicyName string
Threshold double
Unit string
ActionType string
Adjustment int
Cooldown int
Dimensions List<Pulumi.SpotInst.Gke.Inputs.ElastigroupScalingDownPolicyDimensionArgs>
EvaluationPeriods int
Operator string
Period int
Source string
Statistic string
MetricName string
Namespace string
PolicyName string
Threshold float64
Unit string
ActionType string
Adjustment int
Cooldown int
Dimensions []ElastigroupScalingDownPolicyDimension
EvaluationPeriods int
Operator string
Period int
Source string
Statistic string
metricName string
namespace string
policyName string
threshold number
unit string
actionType string
adjustment number
cooldown number
dimensions ElastigroupScalingDownPolicyDimension[]
evaluationPeriods number
operator string
period number
source string
statistic string
metricName str
namespace str
policyName str
threshold float
unit str
actionType str
adjustment float
cooldown float
dimensions List[ElastigroupScalingDownPolicyDimension]
evaluationPeriods float
operator str
period float
source str
statistic str

ElastigroupScalingDownPolicyDimension

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string
Value string
Name string
Value string
name string
value string
name str
value str

ElastigroupScalingUpPolicy

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

MetricName string
Namespace string
PolicyName string
Threshold double
Unit string
ActionType string
Adjustment int
Cooldown int
Dimensions List<Pulumi.SpotInst.Gke.Inputs.ElastigroupScalingUpPolicyDimensionArgs>
EvaluationPeriods int
Operator string
Period int
Source string
Statistic string
MetricName string
Namespace string
PolicyName string
Threshold float64
Unit string
ActionType string
Adjustment int
Cooldown int
Dimensions []ElastigroupScalingUpPolicyDimension
EvaluationPeriods int
Operator string
Period int
Source string
Statistic string
metricName string
namespace string
policyName string
threshold number
unit string
actionType string
adjustment number
cooldown number
dimensions ElastigroupScalingUpPolicyDimension[]
evaluationPeriods number
operator string
period number
source string
statistic string
metricName str
namespace str
policyName str
threshold float
unit str
actionType str
adjustment float
cooldown float
dimensions List[ElastigroupScalingUpPolicyDimension]
evaluationPeriods float
operator str
period float
source str
statistic str

ElastigroupScalingUpPolicyDimension

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string
Value string
Name string
Value string
name string
value string
name str
value str

Package Details

Repository
https://github.com/pulumi/pulumi-spotinst
License
Apache-2.0
Notes
This Pulumi package is based on the spotinst Terraform Provider.