OceanLaunchSpec
Provides a custom Spotinst Ocean GKE Launch Spec resource.
Example Usage
using Pulumi;
using SpotInst = Pulumi.SpotInst;
class MyStack : Stack
{
public MyStack()
{
var example = new SpotInst.Gke.OceanLaunchSpec("example", new SpotInst.Gke.OceanLaunchSpecArgs
{
AutoscaleHeadrooms =
{
new SpotInst.Gke.Inputs.OceanLaunchSpecAutoscaleHeadroomArgs
{
CpuPerUnit = 1000,
GpuPerUnit = 0,
MemoryPerUnit = 2048,
NumOfUnits = 5,
},
},
Labels =
{
new SpotInst.Gke.Inputs.OceanLaunchSpecLabelArgs
{
Key = "labelKey",
Value = "labelVal",
},
},
Metadatas =
{
new SpotInst.Gke.Inputs.OceanLaunchSpecMetadataArgs
{
Key = "gci-update-strategy",
Value = "update_disabled",
},
},
OceanId = "o-123456",
SourceImage = "image",
Taints =
{
new SpotInst.Gke.Inputs.OceanLaunchSpecTaintArgs
{
Effect = "taintEffect",
Key = "taintKey",
Value = "taintVal",
},
},
});
}
}
Coming soon!
import pulumi
import pulumi_spotinst as spotinst
example = spotinst.gke.OceanLaunchSpec("example",
autoscale_headrooms=[{
"cpuPerUnit": 1000,
"gpuPerUnit": 0,
"memoryPerUnit": 2048,
"numOfUnits": 5,
}],
labels=[{
"key": "labelKey",
"value": "labelVal",
}],
metadatas=[{
"key": "gci-update-strategy",
"value": "update_disabled",
}],
ocean_id="o-123456",
source_image="image",
taints=[{
"effect": "taintEffect",
"key": "taintKey",
"value": "taintVal",
}])import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";
const example = new spotinst.gke.OceanLaunchSpec("example", {
autoscaleHeadrooms: [{
cpuPerUnit: 1000,
gpuPerUnit: 0,
memoryPerUnit: 2048,
numOfUnits: 5,
}],
labels: [{
key: "labelKey",
value: "labelVal",
}],
metadatas: [{
key: "gci-update-strategy",
value: "update_disabled",
}],
oceanId: "o-123456",
sourceImage: "image",
taints: [{
effect: "taintEffect",
key: "taintKey",
value: "taintVal",
}],
});Create a OceanLaunchSpec Resource
new OceanLaunchSpec(name: string, args: OceanLaunchSpecArgs, opts?: CustomResourceOptions);def OceanLaunchSpec(resource_name, opts=None, autoscale_headrooms=None, labels=None, metadatas=None, ocean_id=None, source_image=None, taints=None, __props__=None);func NewOceanLaunchSpec(ctx *Context, name string, args OceanLaunchSpecArgs, opts ...ResourceOption) (*OceanLaunchSpec, error)public OceanLaunchSpec(string name, OceanLaunchSpecArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args OceanLaunchSpecArgs
- 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 OceanLaunchSpecArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OceanLaunchSpecArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
OceanLaunchSpec Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The OceanLaunchSpec resource accepts the following input properties:
- Metadatas
List<Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Metadata Args> Cluster’s metadata.
- Ocean
Id string The Ocean cluster ID required for launchSpec create.
- Source
Image string Image URL.
- Autoscale
Headrooms List<Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Autoscale Headroom Args> Set custom headroom per launch spec. provide list of headrooms object.
- Labels
List<Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Label Args> Cluster’s labels.
- Taints
List<Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Taint Args> Cluster’s taints.
- Metadatas
[]Ocean
Launch Spec Metadata Cluster’s metadata.
- Ocean
Id string The Ocean cluster ID required for launchSpec create.
- Source
Image string Image URL.
- Autoscale
Headrooms []OceanLaunch Spec Autoscale Headroom Set custom headroom per launch spec. provide list of headrooms object.
- Labels
[]Ocean
Launch Spec Label Cluster’s labels.
- Taints
[]Ocean
Launch Spec Taint Cluster’s taints.
- metadatas
Ocean
Launch Spec Metadata[] Cluster’s metadata.
- ocean
Id string The Ocean cluster ID required for launchSpec create.
- source
Image string Image URL.
- autoscale
Headrooms OceanLaunch Spec Autoscale Headroom[] Set custom headroom per launch spec. provide list of headrooms object.
- labels
Ocean
Launch Spec Label[] Cluster’s labels.
- taints
Ocean
Launch Spec Taint[] Cluster’s taints.
- metadatas
List[Ocean
Launch Spec Metadata] Cluster’s metadata.
- ocean_
id str The Ocean cluster ID required for launchSpec create.
- source_
image str Image URL.
- autoscale_
headrooms List[OceanLaunch Spec Autoscale Headroom] Set custom headroom per launch spec. provide list of headrooms object.
- labels
List[Ocean
Launch Spec Label] Cluster’s labels.
- taints
List[Ocean
Launch Spec Taint] Cluster’s taints.
Outputs
All input properties are implicitly available as output properties. Additionally, the OceanLaunchSpec resource produces the following output properties:
Look up an Existing OceanLaunchSpec Resource
Get an existing OceanLaunchSpec 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?: OceanLaunchSpecState, opts?: CustomResourceOptions): OceanLaunchSpecstatic get(resource_name, id, opts=None, autoscale_headrooms=None, labels=None, metadatas=None, ocean_id=None, source_image=None, taints=None, __props__=None);func GetOceanLaunchSpec(ctx *Context, name string, id IDInput, state *OceanLaunchSpecState, opts ...ResourceOption) (*OceanLaunchSpec, error)public static OceanLaunchSpec Get(string name, Input<string> id, OceanLaunchSpecState? 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:
- Autoscale
Headrooms List<Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Autoscale Headroom Args> Set custom headroom per launch spec. provide list of headrooms object.
- Labels
List<Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Label Args> Cluster’s labels.
- Metadatas
List<Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Metadata Args> Cluster’s metadata.
- Ocean
Id string The Ocean cluster ID required for launchSpec create.
- Source
Image string Image URL.
- Taints
List<Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Taint Args> Cluster’s taints.
- Autoscale
Headrooms []OceanLaunch Spec Autoscale Headroom Set custom headroom per launch spec. provide list of headrooms object.
- Labels
[]Ocean
Launch Spec Label Cluster’s labels.
- Metadatas
[]Ocean
Launch Spec Metadata Cluster’s metadata.
- Ocean
Id string The Ocean cluster ID required for launchSpec create.
- Source
Image string Image URL.
- Taints
[]Ocean
Launch Spec Taint Cluster’s taints.
- autoscale
Headrooms OceanLaunch Spec Autoscale Headroom[] Set custom headroom per launch spec. provide list of headrooms object.
- labels
Ocean
Launch Spec Label[] Cluster’s labels.
- metadatas
Ocean
Launch Spec Metadata[] Cluster’s metadata.
- ocean
Id string The Ocean cluster ID required for launchSpec create.
- source
Image string Image URL.
- taints
Ocean
Launch Spec Taint[] Cluster’s taints.
- autoscale_
headrooms List[OceanLaunch Spec Autoscale Headroom] Set custom headroom per launch spec. provide list of headrooms object.
- labels
List[Ocean
Launch Spec Label] Cluster’s labels.
- metadatas
List[Ocean
Launch Spec Metadata] Cluster’s metadata.
- ocean_
id str The Ocean cluster ID required for launchSpec create.
- source_
image str Image URL.
- taints
List[Ocean
Launch Spec Taint] Cluster’s taints.
Supporting Types
OceanLaunchSpecAutoscaleHeadroom
- Num
Of intUnits The number of units to retain as headroom, where each unit has the defined headroom CPU, memory and GPU.
- Cpu
Per intUnit Optionally configure the number of CPUs to allocate for each headroom unit. CPUs are denoted in millicores, where 1000 millicores = 1 vCPU.
- Gpu
Per intUnit Optionally configure the number of GPUS to allocate for each headroom unit.
- Memory
Per intUnit Optionally configure the amount of memory (MB) to allocate for each headroom unit.
- Num
Of intUnits The number of units to retain as headroom, where each unit has the defined headroom CPU, memory and GPU.
- Cpu
Per intUnit Optionally configure the number of CPUs to allocate for each headroom unit. CPUs are denoted in millicores, where 1000 millicores = 1 vCPU.
- Gpu
Per intUnit Optionally configure the number of GPUS to allocate for each headroom unit.
- Memory
Per intUnit Optionally configure the amount of memory (MB) to allocate for each headroom unit.
- num
Of numberUnits The number of units to retain as headroom, where each unit has the defined headroom CPU, memory and GPU.
- cpu
Per numberUnit Optionally configure the number of CPUs to allocate for each headroom unit. CPUs are denoted in millicores, where 1000 millicores = 1 vCPU.
- gpu
Per numberUnit Optionally configure the number of GPUS to allocate for each headroom unit.
- memory
Per numberUnit Optionally configure the amount of memory (MB) to allocate for each headroom unit.
- num
Of floatUnits The number of units to retain as headroom, where each unit has the defined headroom CPU, memory and GPU.
- cpu
Per floatUnit Optionally configure the number of CPUs to allocate for each headroom unit. CPUs are denoted in millicores, where 1000 millicores = 1 vCPU.
- gpu
Per floatUnit Optionally configure the number of GPUS to allocate for each headroom unit.
- memory
Per floatUnit Optionally configure the amount of memory (MB) to allocate for each headroom unit.
OceanLaunchSpecLabel
OceanLaunchSpecMetadata
OceanLaunchSpecTaint
Package Details
- Repository
- https://github.com/pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
spotinstTerraform Provider.