spotinst.gke.OceanLaunchSpec
Explore with Pulumi AI
Manages a custom Spotinst Ocean GKE Launch Spec resource.
This resource can be imported from GKE node pool or not. If you want to import the node pool and create the VNG from it, please provide
node_pool_name
.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";
const example = new spotinst.gke.OceanLaunchSpec("example", {
oceanId: "o-123456",
nodePoolName: "default-pool",
name: "specialty.nodes.spotk8s.com",
sourceImage: "image",
restrictScaleDown: true,
rootVolumeSize: 10,
rootVolumeType: "pd-standard",
instanceTypes: ["n1-standard-1, n1-standard-2"],
tags: [
"tag1",
"tag2",
],
shieldedInstanceConfig: {
enableSecureBoot: false,
enableIntegrityMonitoring: true,
},
storage: {
localSsdCount: 5,
},
resourceLimits: {
maxInstanceCount: 3,
minInstanceCount: 0,
},
serviceAccount: "default",
metadatas: [{
key: "gci-update-strategy",
value: "update_disabled",
}],
labels: [{
key: "labelKey",
value: "labelVal",
}],
taints: [{
key: "taintKey",
value: "taintVal",
effect: "taintEffect",
}],
autoscaleHeadroomsAutomatics: [{
autoHeadroomPercentage: 5,
}],
autoscaleHeadrooms: [{
numOfUnits: 5,
cpuPerUnit: 1000,
gpuPerUnit: 0,
memoryPerUnit: 2048,
}],
strategies: [{
preemptiblePercentage: 30,
}],
schedulingTasks: [{
isEnabled: true,
cronExpression: "0 1 * * *",
taskType: "manualHeadroomUpdate",
taskHeadrooms: [{
numOfUnits: 5,
cpuPerUnit: 1000,
gpuPerUnit: 0,
memoryPerUnit: 2048,
}],
}],
networkInterfaces: [{
network: "test-vng-network",
projectId: "test-vng-network-project",
accessConfigs: [{
name: "external-nat-vng",
type: "ONE_TO_ONE_NAT",
}],
aliasIpRanges: [{
ipCidrRange: "/25",
subnetworkRangeName: "gke-test-native-vpc-pods-123456-vng",
}],
}],
});
import pulumi
import pulumi_spotinst as spotinst
example = spotinst.gke.OceanLaunchSpec("example",
ocean_id="o-123456",
node_pool_name="default-pool",
name="specialty.nodes.spotk8s.com",
source_image="image",
restrict_scale_down=True,
root_volume_size=10,
root_volume_type="pd-standard",
instance_types=["n1-standard-1, n1-standard-2"],
tags=[
"tag1",
"tag2",
],
shielded_instance_config=spotinst.gke.OceanLaunchSpecShieldedInstanceConfigArgs(
enable_secure_boot=False,
enable_integrity_monitoring=True,
),
storage=spotinst.gke.OceanLaunchSpecStorageArgs(
local_ssd_count=5,
),
resource_limits=spotinst.gke.OceanLaunchSpecResourceLimitsArgs(
max_instance_count=3,
min_instance_count=0,
),
service_account="default",
metadatas=[spotinst.gke.OceanLaunchSpecMetadataArgs(
key="gci-update-strategy",
value="update_disabled",
)],
labels=[spotinst.gke.OceanLaunchSpecLabelArgs(
key="labelKey",
value="labelVal",
)],
taints=[spotinst.gke.OceanLaunchSpecTaintArgs(
key="taintKey",
value="taintVal",
effect="taintEffect",
)],
autoscale_headrooms_automatics=[spotinst.gke.OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs(
auto_headroom_percentage=5,
)],
autoscale_headrooms=[spotinst.gke.OceanLaunchSpecAutoscaleHeadroomArgs(
num_of_units=5,
cpu_per_unit=1000,
gpu_per_unit=0,
memory_per_unit=2048,
)],
strategies=[spotinst.gke.OceanLaunchSpecStrategyArgs(
preemptible_percentage=30,
)],
scheduling_tasks=[spotinst.gke.OceanLaunchSpecSchedulingTaskArgs(
is_enabled=True,
cron_expression="0 1 * * *",
task_type="manualHeadroomUpdate",
task_headrooms=[spotinst.gke.OceanLaunchSpecSchedulingTaskTaskHeadroomArgs(
num_of_units=5,
cpu_per_unit=1000,
gpu_per_unit=0,
memory_per_unit=2048,
)],
)],
network_interfaces=[spotinst.gke.OceanLaunchSpecNetworkInterfaceArgs(
network="test-vng-network",
project_id="test-vng-network-project",
access_configs=[spotinst.gke.OceanLaunchSpecNetworkInterfaceAccessConfigArgs(
name="external-nat-vng",
type="ONE_TO_ONE_NAT",
)],
alias_ip_ranges=[spotinst.gke.OceanLaunchSpecNetworkInterfaceAliasIpRangeArgs(
ip_cidr_range="/25",
subnetwork_range_name="gke-test-native-vpc-pods-123456-vng",
)],
)])
package main
import (
"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/gke"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gke.NewOceanLaunchSpec(ctx, "example", &gke.OceanLaunchSpecArgs{
OceanId: pulumi.String("o-123456"),
NodePoolName: pulumi.String("default-pool"),
Name: pulumi.String("specialty.nodes.spotk8s.com"),
SourceImage: pulumi.String("image"),
RestrictScaleDown: pulumi.Bool(true),
RootVolumeSize: pulumi.Int(10),
RootVolumeType: pulumi.String("pd-standard"),
InstanceTypes: pulumi.StringArray{
pulumi.String("n1-standard-1, n1-standard-2"),
},
Tags: pulumi.StringArray{
pulumi.String("tag1"),
pulumi.String("tag2"),
},
ShieldedInstanceConfig: &gke.OceanLaunchSpecShieldedInstanceConfigArgs{
EnableSecureBoot: pulumi.Bool(false),
EnableIntegrityMonitoring: pulumi.Bool(true),
},
Storage: &gke.OceanLaunchSpecStorageArgs{
LocalSsdCount: pulumi.Int(5),
},
ResourceLimits: &gke.OceanLaunchSpecResourceLimitsArgs{
MaxInstanceCount: pulumi.Int(3),
MinInstanceCount: pulumi.Int(0),
},
ServiceAccount: pulumi.String("default"),
Metadatas: gke.OceanLaunchSpecMetadataArray{
&gke.OceanLaunchSpecMetadataArgs{
Key: pulumi.String("gci-update-strategy"),
Value: pulumi.String("update_disabled"),
},
},
Labels: gke.OceanLaunchSpecLabelArray{
&gke.OceanLaunchSpecLabelArgs{
Key: pulumi.String("labelKey"),
Value: pulumi.String("labelVal"),
},
},
Taints: gke.OceanLaunchSpecTaintArray{
&gke.OceanLaunchSpecTaintArgs{
Key: pulumi.String("taintKey"),
Value: pulumi.String("taintVal"),
Effect: pulumi.String("taintEffect"),
},
},
AutoscaleHeadroomsAutomatics: gke.OceanLaunchSpecAutoscaleHeadroomsAutomaticArray{
&gke.OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs{
AutoHeadroomPercentage: pulumi.Int(5),
},
},
AutoscaleHeadrooms: gke.OceanLaunchSpecAutoscaleHeadroomArray{
&gke.OceanLaunchSpecAutoscaleHeadroomArgs{
NumOfUnits: pulumi.Int(5),
CpuPerUnit: pulumi.Int(1000),
GpuPerUnit: pulumi.Int(0),
MemoryPerUnit: pulumi.Int(2048),
},
},
Strategies: gke.OceanLaunchSpecStrategyArray{
&gke.OceanLaunchSpecStrategyArgs{
PreemptiblePercentage: pulumi.Int(30),
},
},
SchedulingTasks: gke.OceanLaunchSpecSchedulingTaskArray{
&gke.OceanLaunchSpecSchedulingTaskArgs{
IsEnabled: pulumi.Bool(true),
CronExpression: pulumi.String("0 1 * * *"),
TaskType: pulumi.String("manualHeadroomUpdate"),
TaskHeadrooms: gke.OceanLaunchSpecSchedulingTaskTaskHeadroomArray{
&gke.OceanLaunchSpecSchedulingTaskTaskHeadroomArgs{
NumOfUnits: pulumi.Int(5),
CpuPerUnit: pulumi.Int(1000),
GpuPerUnit: pulumi.Int(0),
MemoryPerUnit: pulumi.Int(2048),
},
},
},
},
NetworkInterfaces: gke.OceanLaunchSpecNetworkInterfaceArray{
&gke.OceanLaunchSpecNetworkInterfaceArgs{
Network: pulumi.String("test-vng-network"),
ProjectId: pulumi.String("test-vng-network-project"),
AccessConfigs: gke.OceanLaunchSpecNetworkInterfaceAccessConfigArray{
&gke.OceanLaunchSpecNetworkInterfaceAccessConfigArgs{
Name: pulumi.String("external-nat-vng"),
Type: pulumi.String("ONE_TO_ONE_NAT"),
},
},
AliasIpRanges: gke.OceanLaunchSpecNetworkInterfaceAliasIpRangeArray{
&gke.OceanLaunchSpecNetworkInterfaceAliasIpRangeArgs{
IpCidrRange: pulumi.String("/25"),
SubnetworkRangeName: pulumi.String("gke-test-native-vpc-pods-123456-vng"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SpotInst = Pulumi.SpotInst;
return await Deployment.RunAsync(() =>
{
var example = new SpotInst.Gke.OceanLaunchSpec("example", new()
{
OceanId = "o-123456",
NodePoolName = "default-pool",
Name = "specialty.nodes.spotk8s.com",
SourceImage = "image",
RestrictScaleDown = true,
RootVolumeSize = 10,
RootVolumeType = "pd-standard",
InstanceTypes = new[]
{
"n1-standard-1, n1-standard-2",
},
Tags = new[]
{
"tag1",
"tag2",
},
ShieldedInstanceConfig = new SpotInst.Gke.Inputs.OceanLaunchSpecShieldedInstanceConfigArgs
{
EnableSecureBoot = false,
EnableIntegrityMonitoring = true,
},
Storage = new SpotInst.Gke.Inputs.OceanLaunchSpecStorageArgs
{
LocalSsdCount = 5,
},
ResourceLimits = new SpotInst.Gke.Inputs.OceanLaunchSpecResourceLimitsArgs
{
MaxInstanceCount = 3,
MinInstanceCount = 0,
},
ServiceAccount = "default",
Metadatas = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecMetadataArgs
{
Key = "gci-update-strategy",
Value = "update_disabled",
},
},
Labels = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecLabelArgs
{
Key = "labelKey",
Value = "labelVal",
},
},
Taints = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecTaintArgs
{
Key = "taintKey",
Value = "taintVal",
Effect = "taintEffect",
},
},
AutoscaleHeadroomsAutomatics = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs
{
AutoHeadroomPercentage = 5,
},
},
AutoscaleHeadrooms = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecAutoscaleHeadroomArgs
{
NumOfUnits = 5,
CpuPerUnit = 1000,
GpuPerUnit = 0,
MemoryPerUnit = 2048,
},
},
Strategies = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecStrategyArgs
{
PreemptiblePercentage = 30,
},
},
SchedulingTasks = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecSchedulingTaskArgs
{
IsEnabled = true,
CronExpression = "0 1 * * *",
TaskType = "manualHeadroomUpdate",
TaskHeadrooms = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecSchedulingTaskTaskHeadroomArgs
{
NumOfUnits = 5,
CpuPerUnit = 1000,
GpuPerUnit = 0,
MemoryPerUnit = 2048,
},
},
},
},
NetworkInterfaces = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecNetworkInterfaceArgs
{
Network = "test-vng-network",
ProjectId = "test-vng-network-project",
AccessConfigs = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecNetworkInterfaceAccessConfigArgs
{
Name = "external-nat-vng",
Type = "ONE_TO_ONE_NAT",
},
},
AliasIpRanges = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecNetworkInterfaceAliasIpRangeArgs
{
IpCidrRange = "/25",
SubnetworkRangeName = "gke-test-native-vpc-pods-123456-vng",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spotinst.gke.OceanLaunchSpec;
import com.pulumi.spotinst.gke.OceanLaunchSpecArgs;
import com.pulumi.spotinst.gke.inputs.OceanLaunchSpecShieldedInstanceConfigArgs;
import com.pulumi.spotinst.gke.inputs.OceanLaunchSpecStorageArgs;
import com.pulumi.spotinst.gke.inputs.OceanLaunchSpecResourceLimitsArgs;
import com.pulumi.spotinst.gke.inputs.OceanLaunchSpecMetadataArgs;
import com.pulumi.spotinst.gke.inputs.OceanLaunchSpecLabelArgs;
import com.pulumi.spotinst.gke.inputs.OceanLaunchSpecTaintArgs;
import com.pulumi.spotinst.gke.inputs.OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs;
import com.pulumi.spotinst.gke.inputs.OceanLaunchSpecAutoscaleHeadroomArgs;
import com.pulumi.spotinst.gke.inputs.OceanLaunchSpecStrategyArgs;
import com.pulumi.spotinst.gke.inputs.OceanLaunchSpecSchedulingTaskArgs;
import com.pulumi.spotinst.gke.inputs.OceanLaunchSpecNetworkInterfaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new OceanLaunchSpec("example", OceanLaunchSpecArgs.builder()
.oceanId("o-123456")
.nodePoolName("default-pool")
.name("specialty.nodes.spotk8s.com")
.sourceImage("image")
.restrictScaleDown(true)
.rootVolumeSize(10)
.rootVolumeType("pd-standard")
.instanceTypes("n1-standard-1, n1-standard-2")
.tags(
"tag1",
"tag2")
.shieldedInstanceConfig(OceanLaunchSpecShieldedInstanceConfigArgs.builder()
.enableSecureBoot(false)
.enableIntegrityMonitoring(true)
.build())
.storage(OceanLaunchSpecStorageArgs.builder()
.localSsdCount(5)
.build())
.resourceLimits(OceanLaunchSpecResourceLimitsArgs.builder()
.maxInstanceCount(3)
.minInstanceCount(0)
.build())
.serviceAccount("default")
.metadatas(OceanLaunchSpecMetadataArgs.builder()
.key("gci-update-strategy")
.value("update_disabled")
.build())
.labels(OceanLaunchSpecLabelArgs.builder()
.key("labelKey")
.value("labelVal")
.build())
.taints(OceanLaunchSpecTaintArgs.builder()
.key("taintKey")
.value("taintVal")
.effect("taintEffect")
.build())
.autoscaleHeadroomsAutomatics(OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs.builder()
.autoHeadroomPercentage(5)
.build())
.autoscaleHeadrooms(OceanLaunchSpecAutoscaleHeadroomArgs.builder()
.numOfUnits(5)
.cpuPerUnit(1000)
.gpuPerUnit(0)
.memoryPerUnit(2048)
.build())
.strategies(OceanLaunchSpecStrategyArgs.builder()
.preemptiblePercentage(30)
.build())
.schedulingTasks(OceanLaunchSpecSchedulingTaskArgs.builder()
.isEnabled(true)
.cronExpression("0 1 * * *")
.taskType("manualHeadroomUpdate")
.taskHeadrooms(OceanLaunchSpecSchedulingTaskTaskHeadroomArgs.builder()
.numOfUnits(5)
.cpuPerUnit(1000)
.gpuPerUnit(0)
.memoryPerUnit(2048)
.build())
.build())
.networkInterfaces(OceanLaunchSpecNetworkInterfaceArgs.builder()
.network("test-vng-network")
.projectId("test-vng-network-project")
.accessConfigs(OceanLaunchSpecNetworkInterfaceAccessConfigArgs.builder()
.name("external-nat-vng")
.type("ONE_TO_ONE_NAT")
.build())
.aliasIpRanges(OceanLaunchSpecNetworkInterfaceAliasIpRangeArgs.builder()
.ipCidrRange("/25")
.subnetworkRangeName("gke-test-native-vpc-pods-123456-vng")
.build())
.build())
.build());
}
}
resources:
example:
type: spotinst:gke:OceanLaunchSpec
properties:
oceanId: o-123456
nodePoolName: default-pool
name: specialty.nodes.spotk8s.com
sourceImage: image
restrictScaleDown: true
rootVolumeSize: 10
rootVolumeType: pd-standard
instanceTypes:
- n1-standard-1, n1-standard-2
tags:
- tag1
- tag2
shieldedInstanceConfig:
enableSecureBoot: false
enableIntegrityMonitoring: true
storage:
localSsdCount: 5
resourceLimits:
maxInstanceCount: 3
minInstanceCount: 0
serviceAccount: default
metadatas:
- key: gci-update-strategy
value: update_disabled
labels:
- key: labelKey
value: labelVal
taints:
- key: taintKey
value: taintVal
effect: taintEffect
autoscaleHeadroomsAutomatics:
- autoHeadroomPercentage: 5
autoscaleHeadrooms:
- numOfUnits: 5
cpuPerUnit: 1000
gpuPerUnit: 0
memoryPerUnit: 2048
strategies:
- preemptiblePercentage: 30
schedulingTasks:
- isEnabled: true
cronExpression: 0 1 * * *
taskType: manualHeadroomUpdate
taskHeadrooms:
- numOfUnits: 5
cpuPerUnit: 1000
gpuPerUnit: 0
memoryPerUnit: 2048
networkInterfaces:
- network: test-vng-network
projectId: test-vng-network-project
accessConfigs:
- name: external-nat-vng
type: ONE_TO_ONE_NAT
aliasIpRanges:
- ipCidrRange: /25
subnetworkRangeName: gke-test-native-vpc-pods-123456-vng
output "ocean_launchspec_id" {
value = spotinst_ocean_gke_launch_spec.example.id
}
Create OceanLaunchSpec Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OceanLaunchSpec(name: string, args: OceanLaunchSpecArgs, opts?: CustomResourceOptions);
@overload
def OceanLaunchSpec(resource_name: str,
args: OceanLaunchSpecArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OceanLaunchSpec(resource_name: str,
opts: Optional[ResourceOptions] = None,
ocean_id: Optional[str] = None,
restrict_scale_down: Optional[bool] = None,
name: Optional[str] = None,
root_volume_size: Optional[int] = None,
scheduling_tasks: Optional[Sequence[OceanLaunchSpecSchedulingTaskArgs]] = None,
root_volume_type: Optional[str] = None,
network_interfaces: Optional[Sequence[OceanLaunchSpecNetworkInterfaceArgs]] = None,
node_pool_name: Optional[str] = None,
autoscale_headrooms_automatics: Optional[Sequence[OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs]] = None,
resource_limits: Optional[OceanLaunchSpecResourceLimitsArgs] = None,
autoscale_headrooms: Optional[Sequence[OceanLaunchSpecAutoscaleHeadroomArgs]] = None,
labels: Optional[Sequence[OceanLaunchSpecLabelArgs]] = None,
instance_types: Optional[Sequence[str]] = None,
metadatas: Optional[Sequence[OceanLaunchSpecMetadataArgs]] = None,
service_account: Optional[str] = None,
shielded_instance_config: Optional[OceanLaunchSpecShieldedInstanceConfigArgs] = None,
source_image: Optional[str] = None,
storage: Optional[OceanLaunchSpecStorageArgs] = None,
strategies: Optional[Sequence[OceanLaunchSpecStrategyArgs]] = None,
tags: Optional[Sequence[str]] = None,
taints: Optional[Sequence[OceanLaunchSpecTaintArgs]] = None,
update_policy: Optional[OceanLaunchSpecUpdatePolicyArgs] = None)
func NewOceanLaunchSpec(ctx *Context, name string, args OceanLaunchSpecArgs, opts ...ResourceOption) (*OceanLaunchSpec, error)
public OceanLaunchSpec(string name, OceanLaunchSpecArgs args, CustomResourceOptions? opts = null)
public OceanLaunchSpec(String name, OceanLaunchSpecArgs args)
public OceanLaunchSpec(String name, OceanLaunchSpecArgs args, CustomResourceOptions options)
type: spotinst:gke:OceanLaunchSpec
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 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.
- args OceanLaunchSpecArgs
- 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 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.
- name String
- The unique name of the resource.
- args OceanLaunchSpecArgs
- 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 exampleoceanLaunchSpecResourceResourceFromGkeoceanLaunchSpec = new SpotInst.Gke.OceanLaunchSpec("exampleoceanLaunchSpecResourceResourceFromGkeoceanLaunchSpec", new()
{
OceanId = "string",
RestrictScaleDown = false,
Name = "string",
RootVolumeSize = 0,
SchedulingTasks = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecSchedulingTaskArgs
{
CronExpression = "string",
IsEnabled = false,
TaskType = "string",
TaskHeadrooms = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecSchedulingTaskTaskHeadroomArgs
{
NumOfUnits = 0,
CpuPerUnit = 0,
GpuPerUnit = 0,
MemoryPerUnit = 0,
},
},
},
},
RootVolumeType = "string",
NetworkInterfaces = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecNetworkInterfaceArgs
{
Network = "string",
AccessConfigs = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecNetworkInterfaceAccessConfigArgs
{
Name = "string",
Type = "string",
},
},
AliasIpRanges = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecNetworkInterfaceAliasIpRangeArgs
{
IpCidrRange = "string",
SubnetworkRangeName = "string",
},
},
ProjectId = "string",
},
},
NodePoolName = "string",
AutoscaleHeadroomsAutomatics = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs
{
AutoHeadroomPercentage = 0,
},
},
ResourceLimits = new SpotInst.Gke.Inputs.OceanLaunchSpecResourceLimitsArgs
{
MaxInstanceCount = 0,
MinInstanceCount = 0,
},
AutoscaleHeadrooms = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecAutoscaleHeadroomArgs
{
NumOfUnits = 0,
CpuPerUnit = 0,
GpuPerUnit = 0,
MemoryPerUnit = 0,
},
},
Labels = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecLabelArgs
{
Key = "string",
Value = "string",
},
},
InstanceTypes = new[]
{
"string",
},
Metadatas = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecMetadataArgs
{
Key = "string",
Value = "string",
},
},
ServiceAccount = "string",
ShieldedInstanceConfig = new SpotInst.Gke.Inputs.OceanLaunchSpecShieldedInstanceConfigArgs
{
EnableIntegrityMonitoring = false,
EnableSecureBoot = false,
},
SourceImage = "string",
Storage = new SpotInst.Gke.Inputs.OceanLaunchSpecStorageArgs
{
LocalSsdCount = 0,
},
Strategies = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecStrategyArgs
{
PreemptiblePercentage = 0,
},
},
Tags = new[]
{
"string",
},
Taints = new[]
{
new SpotInst.Gke.Inputs.OceanLaunchSpecTaintArgs
{
Effect = "string",
Key = "string",
Value = "string",
},
},
UpdatePolicy = new SpotInst.Gke.Inputs.OceanLaunchSpecUpdatePolicyArgs
{
ShouldRoll = false,
RollConfig = new SpotInst.Gke.Inputs.OceanLaunchSpecUpdatePolicyRollConfigArgs
{
BatchSizePercentage = 0,
},
},
});
example, err := gke.NewOceanLaunchSpec(ctx, "exampleoceanLaunchSpecResourceResourceFromGkeoceanLaunchSpec", &gke.OceanLaunchSpecArgs{
OceanId: pulumi.String("string"),
RestrictScaleDown: pulumi.Bool(false),
Name: pulumi.String("string"),
RootVolumeSize: pulumi.Int(0),
SchedulingTasks: gke.OceanLaunchSpecSchedulingTaskArray{
&gke.OceanLaunchSpecSchedulingTaskArgs{
CronExpression: pulumi.String("string"),
IsEnabled: pulumi.Bool(false),
TaskType: pulumi.String("string"),
TaskHeadrooms: gke.OceanLaunchSpecSchedulingTaskTaskHeadroomArray{
&gke.OceanLaunchSpecSchedulingTaskTaskHeadroomArgs{
NumOfUnits: pulumi.Int(0),
CpuPerUnit: pulumi.Int(0),
GpuPerUnit: pulumi.Int(0),
MemoryPerUnit: pulumi.Int(0),
},
},
},
},
RootVolumeType: pulumi.String("string"),
NetworkInterfaces: gke.OceanLaunchSpecNetworkInterfaceArray{
&gke.OceanLaunchSpecNetworkInterfaceArgs{
Network: pulumi.String("string"),
AccessConfigs: gke.OceanLaunchSpecNetworkInterfaceAccessConfigArray{
&gke.OceanLaunchSpecNetworkInterfaceAccessConfigArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
AliasIpRanges: gke.OceanLaunchSpecNetworkInterfaceAliasIpRangeArray{
&gke.OceanLaunchSpecNetworkInterfaceAliasIpRangeArgs{
IpCidrRange: pulumi.String("string"),
SubnetworkRangeName: pulumi.String("string"),
},
},
ProjectId: pulumi.String("string"),
},
},
NodePoolName: pulumi.String("string"),
AutoscaleHeadroomsAutomatics: gke.OceanLaunchSpecAutoscaleHeadroomsAutomaticArray{
&gke.OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs{
AutoHeadroomPercentage: pulumi.Int(0),
},
},
ResourceLimits: &gke.OceanLaunchSpecResourceLimitsArgs{
MaxInstanceCount: pulumi.Int(0),
MinInstanceCount: pulumi.Int(0),
},
AutoscaleHeadrooms: gke.OceanLaunchSpecAutoscaleHeadroomArray{
&gke.OceanLaunchSpecAutoscaleHeadroomArgs{
NumOfUnits: pulumi.Int(0),
CpuPerUnit: pulumi.Int(0),
GpuPerUnit: pulumi.Int(0),
MemoryPerUnit: pulumi.Int(0),
},
},
Labels: gke.OceanLaunchSpecLabelArray{
&gke.OceanLaunchSpecLabelArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
InstanceTypes: pulumi.StringArray{
pulumi.String("string"),
},
Metadatas: gke.OceanLaunchSpecMetadataArray{
&gke.OceanLaunchSpecMetadataArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
ServiceAccount: pulumi.String("string"),
ShieldedInstanceConfig: &gke.OceanLaunchSpecShieldedInstanceConfigArgs{
EnableIntegrityMonitoring: pulumi.Bool(false),
EnableSecureBoot: pulumi.Bool(false),
},
SourceImage: pulumi.String("string"),
Storage: &gke.OceanLaunchSpecStorageArgs{
LocalSsdCount: pulumi.Int(0),
},
Strategies: gke.OceanLaunchSpecStrategyArray{
&gke.OceanLaunchSpecStrategyArgs{
PreemptiblePercentage: pulumi.Int(0),
},
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Taints: gke.OceanLaunchSpecTaintArray{
&gke.OceanLaunchSpecTaintArgs{
Effect: pulumi.String("string"),
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
UpdatePolicy: &gke.OceanLaunchSpecUpdatePolicyArgs{
ShouldRoll: pulumi.Bool(false),
RollConfig: &gke.OceanLaunchSpecUpdatePolicyRollConfigArgs{
BatchSizePercentage: pulumi.Int(0),
},
},
})
var exampleoceanLaunchSpecResourceResourceFromGkeoceanLaunchSpec = new OceanLaunchSpec("exampleoceanLaunchSpecResourceResourceFromGkeoceanLaunchSpec", OceanLaunchSpecArgs.builder()
.oceanId("string")
.restrictScaleDown(false)
.name("string")
.rootVolumeSize(0)
.schedulingTasks(OceanLaunchSpecSchedulingTaskArgs.builder()
.cronExpression("string")
.isEnabled(false)
.taskType("string")
.taskHeadrooms(OceanLaunchSpecSchedulingTaskTaskHeadroomArgs.builder()
.numOfUnits(0)
.cpuPerUnit(0)
.gpuPerUnit(0)
.memoryPerUnit(0)
.build())
.build())
.rootVolumeType("string")
.networkInterfaces(OceanLaunchSpecNetworkInterfaceArgs.builder()
.network("string")
.accessConfigs(OceanLaunchSpecNetworkInterfaceAccessConfigArgs.builder()
.name("string")
.type("string")
.build())
.aliasIpRanges(OceanLaunchSpecNetworkInterfaceAliasIpRangeArgs.builder()
.ipCidrRange("string")
.subnetworkRangeName("string")
.build())
.projectId("string")
.build())
.nodePoolName("string")
.autoscaleHeadroomsAutomatics(OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs.builder()
.autoHeadroomPercentage(0)
.build())
.resourceLimits(OceanLaunchSpecResourceLimitsArgs.builder()
.maxInstanceCount(0)
.minInstanceCount(0)
.build())
.autoscaleHeadrooms(OceanLaunchSpecAutoscaleHeadroomArgs.builder()
.numOfUnits(0)
.cpuPerUnit(0)
.gpuPerUnit(0)
.memoryPerUnit(0)
.build())
.labels(OceanLaunchSpecLabelArgs.builder()
.key("string")
.value("string")
.build())
.instanceTypes("string")
.metadatas(OceanLaunchSpecMetadataArgs.builder()
.key("string")
.value("string")
.build())
.serviceAccount("string")
.shieldedInstanceConfig(OceanLaunchSpecShieldedInstanceConfigArgs.builder()
.enableIntegrityMonitoring(false)
.enableSecureBoot(false)
.build())
.sourceImage("string")
.storage(OceanLaunchSpecStorageArgs.builder()
.localSsdCount(0)
.build())
.strategies(OceanLaunchSpecStrategyArgs.builder()
.preemptiblePercentage(0)
.build())
.tags("string")
.taints(OceanLaunchSpecTaintArgs.builder()
.effect("string")
.key("string")
.value("string")
.build())
.updatePolicy(OceanLaunchSpecUpdatePolicyArgs.builder()
.shouldRoll(false)
.rollConfig(OceanLaunchSpecUpdatePolicyRollConfigArgs.builder()
.batchSizePercentage(0)
.build())
.build())
.build());
exampleocean_launch_spec_resource_resource_from_gkeocean_launch_spec = spotinst.gke.OceanLaunchSpec("exampleoceanLaunchSpecResourceResourceFromGkeoceanLaunchSpec",
ocean_id="string",
restrict_scale_down=False,
name="string",
root_volume_size=0,
scheduling_tasks=[spotinst.gke.OceanLaunchSpecSchedulingTaskArgs(
cron_expression="string",
is_enabled=False,
task_type="string",
task_headrooms=[spotinst.gke.OceanLaunchSpecSchedulingTaskTaskHeadroomArgs(
num_of_units=0,
cpu_per_unit=0,
gpu_per_unit=0,
memory_per_unit=0,
)],
)],
root_volume_type="string",
network_interfaces=[spotinst.gke.OceanLaunchSpecNetworkInterfaceArgs(
network="string",
access_configs=[spotinst.gke.OceanLaunchSpecNetworkInterfaceAccessConfigArgs(
name="string",
type="string",
)],
alias_ip_ranges=[spotinst.gke.OceanLaunchSpecNetworkInterfaceAliasIpRangeArgs(
ip_cidr_range="string",
subnetwork_range_name="string",
)],
project_id="string",
)],
node_pool_name="string",
autoscale_headrooms_automatics=[spotinst.gke.OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs(
auto_headroom_percentage=0,
)],
resource_limits=spotinst.gke.OceanLaunchSpecResourceLimitsArgs(
max_instance_count=0,
min_instance_count=0,
),
autoscale_headrooms=[spotinst.gke.OceanLaunchSpecAutoscaleHeadroomArgs(
num_of_units=0,
cpu_per_unit=0,
gpu_per_unit=0,
memory_per_unit=0,
)],
labels=[spotinst.gke.OceanLaunchSpecLabelArgs(
key="string",
value="string",
)],
instance_types=["string"],
metadatas=[spotinst.gke.OceanLaunchSpecMetadataArgs(
key="string",
value="string",
)],
service_account="string",
shielded_instance_config=spotinst.gke.OceanLaunchSpecShieldedInstanceConfigArgs(
enable_integrity_monitoring=False,
enable_secure_boot=False,
),
source_image="string",
storage=spotinst.gke.OceanLaunchSpecStorageArgs(
local_ssd_count=0,
),
strategies=[spotinst.gke.OceanLaunchSpecStrategyArgs(
preemptible_percentage=0,
)],
tags=["string"],
taints=[spotinst.gke.OceanLaunchSpecTaintArgs(
effect="string",
key="string",
value="string",
)],
update_policy=spotinst.gke.OceanLaunchSpecUpdatePolicyArgs(
should_roll=False,
roll_config=spotinst.gke.OceanLaunchSpecUpdatePolicyRollConfigArgs(
batch_size_percentage=0,
),
))
const exampleoceanLaunchSpecResourceResourceFromGkeoceanLaunchSpec = new spotinst.gke.OceanLaunchSpec("exampleoceanLaunchSpecResourceResourceFromGkeoceanLaunchSpec", {
oceanId: "string",
restrictScaleDown: false,
name: "string",
rootVolumeSize: 0,
schedulingTasks: [{
cronExpression: "string",
isEnabled: false,
taskType: "string",
taskHeadrooms: [{
numOfUnits: 0,
cpuPerUnit: 0,
gpuPerUnit: 0,
memoryPerUnit: 0,
}],
}],
rootVolumeType: "string",
networkInterfaces: [{
network: "string",
accessConfigs: [{
name: "string",
type: "string",
}],
aliasIpRanges: [{
ipCidrRange: "string",
subnetworkRangeName: "string",
}],
projectId: "string",
}],
nodePoolName: "string",
autoscaleHeadroomsAutomatics: [{
autoHeadroomPercentage: 0,
}],
resourceLimits: {
maxInstanceCount: 0,
minInstanceCount: 0,
},
autoscaleHeadrooms: [{
numOfUnits: 0,
cpuPerUnit: 0,
gpuPerUnit: 0,
memoryPerUnit: 0,
}],
labels: [{
key: "string",
value: "string",
}],
instanceTypes: ["string"],
metadatas: [{
key: "string",
value: "string",
}],
serviceAccount: "string",
shieldedInstanceConfig: {
enableIntegrityMonitoring: false,
enableSecureBoot: false,
},
sourceImage: "string",
storage: {
localSsdCount: 0,
},
strategies: [{
preemptiblePercentage: 0,
}],
tags: ["string"],
taints: [{
effect: "string",
key: "string",
value: "string",
}],
updatePolicy: {
shouldRoll: false,
rollConfig: {
batchSizePercentage: 0,
},
},
});
type: spotinst:gke:OceanLaunchSpec
properties:
autoscaleHeadrooms:
- cpuPerUnit: 0
gpuPerUnit: 0
memoryPerUnit: 0
numOfUnits: 0
autoscaleHeadroomsAutomatics:
- autoHeadroomPercentage: 0
instanceTypes:
- string
labels:
- key: string
value: string
metadatas:
- key: string
value: string
name: string
networkInterfaces:
- accessConfigs:
- name: string
type: string
aliasIpRanges:
- ipCidrRange: string
subnetworkRangeName: string
network: string
projectId: string
nodePoolName: string
oceanId: string
resourceLimits:
maxInstanceCount: 0
minInstanceCount: 0
restrictScaleDown: false
rootVolumeSize: 0
rootVolumeType: string
schedulingTasks:
- cronExpression: string
isEnabled: false
taskHeadrooms:
- cpuPerUnit: 0
gpuPerUnit: 0
memoryPerUnit: 0
numOfUnits: 0
taskType: string
serviceAccount: string
shieldedInstanceConfig:
enableIntegrityMonitoring: false
enableSecureBoot: false
sourceImage: string
storage:
localSsdCount: 0
strategies:
- preemptiblePercentage: 0
tags:
- string
taints:
- effect: string
key: string
value: string
updatePolicy:
rollConfig:
batchSizePercentage: 0
shouldRoll: false
OceanLaunchSpec Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The OceanLaunchSpec resource accepts the following input properties:
- Ocean
Id string - The Ocean cluster ID.
- Autoscale
Headrooms List<Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Autoscale Headroom> - Set custom headroom per launch spec. provide list of headrooms object.
- Autoscale
Headrooms List<Pulumi.Automatics Spot Inst. Gke. Inputs. Ocean Launch Spec Autoscale Headrooms Automatic> - Set automatic headroom per launch spec.
- Instance
Types List<string> - List of supported machine types for the Launch Spec.
- Labels
List<Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Label> - Optionally adds labels to instances launched in an Ocean cluster.
- Metadatas
List<Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Metadata> - Cluster's metadata.
- Name string
- The launch specification name.
- Network
Interfaces List<Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Network Interface> - Settings for network interfaces.
- Node
Pool stringName - The node pool you wish to use in your Launch Spec.
- Resource
Limits Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Resource Limits - The Ocean virtual node group resource limits object.
- Restrict
Scale boolDown - Boolean. When set to
true
, VNG nodes will be treated as if all pods running have the restrict-scale-down label. Therefore, Ocean will not scale nodes down unless empty. - Root
Volume intSize - Root volume size (in GB).
- Root
Volume stringType - Root volume disk type. Valid values:
"pd-standard"
,"pd-ssd"
. - Scheduling
Tasks List<Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Scheduling Task> - Used to define scheduled tasks such as a manual headroom update.
- Service
Account string - The account used by applications running on the VM to call GCP APIs.
- Shielded
Instance Pulumi.Config Spot Inst. Gke. Inputs. Ocean Launch Spec Shielded Instance Config - The Ocean shielded instance configuration object.
- Source
Image string - Image URL.
- Storage
Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Storage - The Ocean virtual node group storage object.
- Strategies
List<Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Strategy> - The Ocean Launch Spec Strategy object.
- List<string>
- Every node launched from this configuration will be tagged with those tags. Note: during creation some tags are automatically imported to the state file, it is required to manually add it to the template configuration
- Taints
List<Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Taint> - Optionally adds labels to instances launched in an Ocean cluster.
- Update
Policy Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Update Policy
- Ocean
Id string - The Ocean cluster ID.
- Autoscale
Headrooms []OceanLaunch Spec Autoscale Headroom Args - Set custom headroom per launch spec. provide list of headrooms object.
- Autoscale
Headrooms []OceanAutomatics Launch Spec Autoscale Headrooms Automatic Args - Set automatic headroom per launch spec.
- Instance
Types []string - List of supported machine types for the Launch Spec.
- Labels
[]Ocean
Launch Spec Label Args - Optionally adds labels to instances launched in an Ocean cluster.
- Metadatas
[]Ocean
Launch Spec Metadata Args - Cluster's metadata.
- Name string
- The launch specification name.
- Network
Interfaces []OceanLaunch Spec Network Interface Args - Settings for network interfaces.
- Node
Pool stringName - The node pool you wish to use in your Launch Spec.
- Resource
Limits OceanLaunch Spec Resource Limits Args - The Ocean virtual node group resource limits object.
- Restrict
Scale boolDown - Boolean. When set to
true
, VNG nodes will be treated as if all pods running have the restrict-scale-down label. Therefore, Ocean will not scale nodes down unless empty. - Root
Volume intSize - Root volume size (in GB).
- Root
Volume stringType - Root volume disk type. Valid values:
"pd-standard"
,"pd-ssd"
. - Scheduling
Tasks []OceanLaunch Spec Scheduling Task Args - Used to define scheduled tasks such as a manual headroom update.
- Service
Account string - The account used by applications running on the VM to call GCP APIs.
- Shielded
Instance OceanConfig Launch Spec Shielded Instance Config Args - The Ocean shielded instance configuration object.
- Source
Image string - Image URL.
- Storage
Ocean
Launch Spec Storage Args - The Ocean virtual node group storage object.
- Strategies
[]Ocean
Launch Spec Strategy Args - The Ocean Launch Spec Strategy object.
- []string
- Every node launched from this configuration will be tagged with those tags. Note: during creation some tags are automatically imported to the state file, it is required to manually add it to the template configuration
- Taints
[]Ocean
Launch Spec Taint Args - Optionally adds labels to instances launched in an Ocean cluster.
- Update
Policy OceanLaunch Spec Update Policy Args
- ocean
Id String - The Ocean cluster ID.
- autoscale
Headrooms List<OceanLaunch Spec Autoscale Headroom> - Set custom headroom per launch spec. provide list of headrooms object.
- autoscale
Headrooms List<OceanAutomatics Launch Spec Autoscale Headrooms Automatic> - Set automatic headroom per launch spec.
- instance
Types List<String> - List of supported machine types for the Launch Spec.
- labels
List<Ocean
Launch Spec Label> - Optionally adds labels to instances launched in an Ocean cluster.
- metadatas
List<Ocean
Launch Spec Metadata> - Cluster's metadata.
- name String
- The launch specification name.
- network
Interfaces List<OceanLaunch Spec Network Interface> - Settings for network interfaces.
- node
Pool StringName - The node pool you wish to use in your Launch Spec.
- resource
Limits OceanLaunch Spec Resource Limits - The Ocean virtual node group resource limits object.
- restrict
Scale BooleanDown - Boolean. When set to
true
, VNG nodes will be treated as if all pods running have the restrict-scale-down label. Therefore, Ocean will not scale nodes down unless empty. - root
Volume IntegerSize - Root volume size (in GB).
- root
Volume StringType - Root volume disk type. Valid values:
"pd-standard"
,"pd-ssd"
. - scheduling
Tasks List<OceanLaunch Spec Scheduling Task> - Used to define scheduled tasks such as a manual headroom update.
- service
Account String - The account used by applications running on the VM to call GCP APIs.
- shielded
Instance OceanConfig Launch Spec Shielded Instance Config - The Ocean shielded instance configuration object.
- source
Image String - Image URL.
- storage
Ocean
Launch Spec Storage - The Ocean virtual node group storage object.
- strategies
List<Ocean
Launch Spec Strategy> - The Ocean Launch Spec Strategy object.
- List<String>
- Every node launched from this configuration will be tagged with those tags. Note: during creation some tags are automatically imported to the state file, it is required to manually add it to the template configuration
- taints
List<Ocean
Launch Spec Taint> - Optionally adds labels to instances launched in an Ocean cluster.
- update
Policy OceanLaunch Spec Update Policy
- ocean
Id string - The Ocean cluster ID.
- autoscale
Headrooms OceanLaunch Spec Autoscale Headroom[] - Set custom headroom per launch spec. provide list of headrooms object.
- autoscale
Headrooms OceanAutomatics Launch Spec Autoscale Headrooms Automatic[] - Set automatic headroom per launch spec.
- instance
Types string[] - List of supported machine types for the Launch Spec.
- labels
Ocean
Launch Spec Label[] - Optionally adds labels to instances launched in an Ocean cluster.
- metadatas
Ocean
Launch Spec Metadata[] - Cluster's metadata.
- name string
- The launch specification name.
- network
Interfaces OceanLaunch Spec Network Interface[] - Settings for network interfaces.
- node
Pool stringName - The node pool you wish to use in your Launch Spec.
- resource
Limits OceanLaunch Spec Resource Limits - The Ocean virtual node group resource limits object.
- restrict
Scale booleanDown - Boolean. When set to
true
, VNG nodes will be treated as if all pods running have the restrict-scale-down label. Therefore, Ocean will not scale nodes down unless empty. - root
Volume numberSize - Root volume size (in GB).
- root
Volume stringType - Root volume disk type. Valid values:
"pd-standard"
,"pd-ssd"
. - scheduling
Tasks OceanLaunch Spec Scheduling Task[] - Used to define scheduled tasks such as a manual headroom update.
- service
Account string - The account used by applications running on the VM to call GCP APIs.
- shielded
Instance OceanConfig Launch Spec Shielded Instance Config - The Ocean shielded instance configuration object.
- source
Image string - Image URL.
- storage
Ocean
Launch Spec Storage - The Ocean virtual node group storage object.
- strategies
Ocean
Launch Spec Strategy[] - The Ocean Launch Spec Strategy object.
- string[]
- Every node launched from this configuration will be tagged with those tags. Note: during creation some tags are automatically imported to the state file, it is required to manually add it to the template configuration
- taints
Ocean
Launch Spec Taint[] - Optionally adds labels to instances launched in an Ocean cluster.
- update
Policy OceanLaunch Spec Update Policy
- ocean_
id str - The Ocean cluster ID.
- autoscale_
headrooms Sequence[OceanLaunch Spec Autoscale Headroom Args] - Set custom headroom per launch spec. provide list of headrooms object.
- autoscale_
headrooms_ Sequence[Oceanautomatics Launch Spec Autoscale Headrooms Automatic Args] - Set automatic headroom per launch spec.
- instance_
types Sequence[str] - List of supported machine types for the Launch Spec.
- labels
Sequence[Ocean
Launch Spec Label Args] - Optionally adds labels to instances launched in an Ocean cluster.
- metadatas
Sequence[Ocean
Launch Spec Metadata Args] - Cluster's metadata.
- name str
- The launch specification name.
- network_
interfaces Sequence[OceanLaunch Spec Network Interface Args] - Settings for network interfaces.
- node_
pool_ strname - The node pool you wish to use in your Launch Spec.
- resource_
limits OceanLaunch Spec Resource Limits Args - The Ocean virtual node group resource limits object.
- restrict_
scale_ booldown - Boolean. When set to
true
, VNG nodes will be treated as if all pods running have the restrict-scale-down label. Therefore, Ocean will not scale nodes down unless empty. - root_
volume_ intsize - Root volume size (in GB).
- root_
volume_ strtype - Root volume disk type. Valid values:
"pd-standard"
,"pd-ssd"
. - scheduling_
tasks Sequence[OceanLaunch Spec Scheduling Task Args] - Used to define scheduled tasks such as a manual headroom update.
- service_
account str - The account used by applications running on the VM to call GCP APIs.
- shielded_
instance_ Oceanconfig Launch Spec Shielded Instance Config Args - The Ocean shielded instance configuration object.
- source_
image str - Image URL.
- storage
Ocean
Launch Spec Storage Args - The Ocean virtual node group storage object.
- strategies
Sequence[Ocean
Launch Spec Strategy Args] - The Ocean Launch Spec Strategy object.
- Sequence[str]
- Every node launched from this configuration will be tagged with those tags. Note: during creation some tags are automatically imported to the state file, it is required to manually add it to the template configuration
- taints
Sequence[Ocean
Launch Spec Taint Args] - Optionally adds labels to instances launched in an Ocean cluster.
- update_
policy OceanLaunch Spec Update Policy Args
- ocean
Id String - The Ocean cluster ID.
- autoscale
Headrooms List<Property Map> - Set custom headroom per launch spec. provide list of headrooms object.
- autoscale
Headrooms List<Property Map>Automatics - Set automatic headroom per launch spec.
- instance
Types List<String> - List of supported machine types for the Launch Spec.
- labels List<Property Map>
- Optionally adds labels to instances launched in an Ocean cluster.
- metadatas List<Property Map>
- Cluster's metadata.
- name String
- The launch specification name.
- network
Interfaces List<Property Map> - Settings for network interfaces.
- node
Pool StringName - The node pool you wish to use in your Launch Spec.
- resource
Limits Property Map - The Ocean virtual node group resource limits object.
- restrict
Scale BooleanDown - Boolean. When set to
true
, VNG nodes will be treated as if all pods running have the restrict-scale-down label. Therefore, Ocean will not scale nodes down unless empty. - root
Volume NumberSize - Root volume size (in GB).
- root
Volume StringType - Root volume disk type. Valid values:
"pd-standard"
,"pd-ssd"
. - scheduling
Tasks List<Property Map> - Used to define scheduled tasks such as a manual headroom update.
- service
Account String - The account used by applications running on the VM to call GCP APIs.
- shielded
Instance Property MapConfig - The Ocean shielded instance configuration object.
- source
Image String - Image URL.
- storage Property Map
- The Ocean virtual node group storage object.
- strategies List<Property Map>
- The Ocean Launch Spec Strategy object.
- List<String>
- Every node launched from this configuration will be tagged with those tags. Note: during creation some tags are automatically imported to the state file, it is required to manually add it to the template configuration
- taints List<Property Map>
- Optionally adds labels to instances launched in an Ocean cluster.
- update
Policy Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the OceanLaunchSpec 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 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): OceanLaunchSpec
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
autoscale_headrooms: Optional[Sequence[OceanLaunchSpecAutoscaleHeadroomArgs]] = None,
autoscale_headrooms_automatics: Optional[Sequence[OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs]] = None,
instance_types: Optional[Sequence[str]] = None,
labels: Optional[Sequence[OceanLaunchSpecLabelArgs]] = None,
metadatas: Optional[Sequence[OceanLaunchSpecMetadataArgs]] = None,
name: Optional[str] = None,
network_interfaces: Optional[Sequence[OceanLaunchSpecNetworkInterfaceArgs]] = None,
node_pool_name: Optional[str] = None,
ocean_id: Optional[str] = None,
resource_limits: Optional[OceanLaunchSpecResourceLimitsArgs] = None,
restrict_scale_down: Optional[bool] = None,
root_volume_size: Optional[int] = None,
root_volume_type: Optional[str] = None,
scheduling_tasks: Optional[Sequence[OceanLaunchSpecSchedulingTaskArgs]] = None,
service_account: Optional[str] = None,
shielded_instance_config: Optional[OceanLaunchSpecShieldedInstanceConfigArgs] = None,
source_image: Optional[str] = None,
storage: Optional[OceanLaunchSpecStorageArgs] = None,
strategies: Optional[Sequence[OceanLaunchSpecStrategyArgs]] = None,
tags: Optional[Sequence[str]] = None,
taints: Optional[Sequence[OceanLaunchSpecTaintArgs]] = None,
update_policy: Optional[OceanLaunchSpecUpdatePolicyArgs] = None) -> OceanLaunchSpec
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)
public static OceanLaunchSpec get(String name, Output<String> id, OceanLaunchSpecState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Autoscale
Headrooms List<Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Autoscale Headroom> - Set custom headroom per launch spec. provide list of headrooms object.
- Autoscale
Headrooms List<Pulumi.Automatics Spot Inst. Gke. Inputs. Ocean Launch Spec Autoscale Headrooms Automatic> - Set automatic headroom per launch spec.
- Instance
Types List<string> - List of supported machine types for the Launch Spec.
- Labels
List<Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Label> - Optionally adds labels to instances launched in an Ocean cluster.
- Metadatas
List<Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Metadata> - Cluster's metadata.
- Name string
- The launch specification name.
- Network
Interfaces List<Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Network Interface> - Settings for network interfaces.
- Node
Pool stringName - The node pool you wish to use in your Launch Spec.
- Ocean
Id string - The Ocean cluster ID.
- Resource
Limits Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Resource Limits - The Ocean virtual node group resource limits object.
- Restrict
Scale boolDown - Boolean. When set to
true
, VNG nodes will be treated as if all pods running have the restrict-scale-down label. Therefore, Ocean will not scale nodes down unless empty. - Root
Volume intSize - Root volume size (in GB).
- Root
Volume stringType - Root volume disk type. Valid values:
"pd-standard"
,"pd-ssd"
. - Scheduling
Tasks List<Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Scheduling Task> - Used to define scheduled tasks such as a manual headroom update.
- Service
Account string - The account used by applications running on the VM to call GCP APIs.
- Shielded
Instance Pulumi.Config Spot Inst. Gke. Inputs. Ocean Launch Spec Shielded Instance Config - The Ocean shielded instance configuration object.
- Source
Image string - Image URL.
- Storage
Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Storage - The Ocean virtual node group storage object.
- Strategies
List<Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Strategy> - The Ocean Launch Spec Strategy object.
- List<string>
- Every node launched from this configuration will be tagged with those tags. Note: during creation some tags are automatically imported to the state file, it is required to manually add it to the template configuration
- Taints
List<Pulumi.
Spot Inst. Gke. Inputs. Ocean Launch Spec Taint> - Optionally adds labels to instances launched in an Ocean cluster.
- Update
Policy Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Update Policy
- Autoscale
Headrooms []OceanLaunch Spec Autoscale Headroom Args - Set custom headroom per launch spec. provide list of headrooms object.
- Autoscale
Headrooms []OceanAutomatics Launch Spec Autoscale Headrooms Automatic Args - Set automatic headroom per launch spec.
- Instance
Types []string - List of supported machine types for the Launch Spec.
- Labels
[]Ocean
Launch Spec Label Args - Optionally adds labels to instances launched in an Ocean cluster.
- Metadatas
[]Ocean
Launch Spec Metadata Args - Cluster's metadata.
- Name string
- The launch specification name.
- Network
Interfaces []OceanLaunch Spec Network Interface Args - Settings for network interfaces.
- Node
Pool stringName - The node pool you wish to use in your Launch Spec.
- Ocean
Id string - The Ocean cluster ID.
- Resource
Limits OceanLaunch Spec Resource Limits Args - The Ocean virtual node group resource limits object.
- Restrict
Scale boolDown - Boolean. When set to
true
, VNG nodes will be treated as if all pods running have the restrict-scale-down label. Therefore, Ocean will not scale nodes down unless empty. - Root
Volume intSize - Root volume size (in GB).
- Root
Volume stringType - Root volume disk type. Valid values:
"pd-standard"
,"pd-ssd"
. - Scheduling
Tasks []OceanLaunch Spec Scheduling Task Args - Used to define scheduled tasks such as a manual headroom update.
- Service
Account string - The account used by applications running on the VM to call GCP APIs.
- Shielded
Instance OceanConfig Launch Spec Shielded Instance Config Args - The Ocean shielded instance configuration object.
- Source
Image string - Image URL.
- Storage
Ocean
Launch Spec Storage Args - The Ocean virtual node group storage object.
- Strategies
[]Ocean
Launch Spec Strategy Args - The Ocean Launch Spec Strategy object.
- []string
- Every node launched from this configuration will be tagged with those tags. Note: during creation some tags are automatically imported to the state file, it is required to manually add it to the template configuration
- Taints
[]Ocean
Launch Spec Taint Args - Optionally adds labels to instances launched in an Ocean cluster.
- Update
Policy OceanLaunch Spec Update Policy Args
- autoscale
Headrooms List<OceanLaunch Spec Autoscale Headroom> - Set custom headroom per launch spec. provide list of headrooms object.
- autoscale
Headrooms List<OceanAutomatics Launch Spec Autoscale Headrooms Automatic> - Set automatic headroom per launch spec.
- instance
Types List<String> - List of supported machine types for the Launch Spec.
- labels
List<Ocean
Launch Spec Label> - Optionally adds labels to instances launched in an Ocean cluster.
- metadatas
List<Ocean
Launch Spec Metadata> - Cluster's metadata.
- name String
- The launch specification name.
- network
Interfaces List<OceanLaunch Spec Network Interface> - Settings for network interfaces.
- node
Pool StringName - The node pool you wish to use in your Launch Spec.
- ocean
Id String - The Ocean cluster ID.
- resource
Limits OceanLaunch Spec Resource Limits - The Ocean virtual node group resource limits object.
- restrict
Scale BooleanDown - Boolean. When set to
true
, VNG nodes will be treated as if all pods running have the restrict-scale-down label. Therefore, Ocean will not scale nodes down unless empty. - root
Volume IntegerSize - Root volume size (in GB).
- root
Volume StringType - Root volume disk type. Valid values:
"pd-standard"
,"pd-ssd"
. - scheduling
Tasks List<OceanLaunch Spec Scheduling Task> - Used to define scheduled tasks such as a manual headroom update.
- service
Account String - The account used by applications running on the VM to call GCP APIs.
- shielded
Instance OceanConfig Launch Spec Shielded Instance Config - The Ocean shielded instance configuration object.
- source
Image String - Image URL.
- storage
Ocean
Launch Spec Storage - The Ocean virtual node group storage object.
- strategies
List<Ocean
Launch Spec Strategy> - The Ocean Launch Spec Strategy object.
- List<String>
- Every node launched from this configuration will be tagged with those tags. Note: during creation some tags are automatically imported to the state file, it is required to manually add it to the template configuration
- taints
List<Ocean
Launch Spec Taint> - Optionally adds labels to instances launched in an Ocean cluster.
- update
Policy OceanLaunch Spec Update Policy
- autoscale
Headrooms OceanLaunch Spec Autoscale Headroom[] - Set custom headroom per launch spec. provide list of headrooms object.
- autoscale
Headrooms OceanAutomatics Launch Spec Autoscale Headrooms Automatic[] - Set automatic headroom per launch spec.
- instance
Types string[] - List of supported machine types for the Launch Spec.
- labels
Ocean
Launch Spec Label[] - Optionally adds labels to instances launched in an Ocean cluster.
- metadatas
Ocean
Launch Spec Metadata[] - Cluster's metadata.
- name string
- The launch specification name.
- network
Interfaces OceanLaunch Spec Network Interface[] - Settings for network interfaces.
- node
Pool stringName - The node pool you wish to use in your Launch Spec.
- ocean
Id string - The Ocean cluster ID.
- resource
Limits OceanLaunch Spec Resource Limits - The Ocean virtual node group resource limits object.
- restrict
Scale booleanDown - Boolean. When set to
true
, VNG nodes will be treated as if all pods running have the restrict-scale-down label. Therefore, Ocean will not scale nodes down unless empty. - root
Volume numberSize - Root volume size (in GB).
- root
Volume stringType - Root volume disk type. Valid values:
"pd-standard"
,"pd-ssd"
. - scheduling
Tasks OceanLaunch Spec Scheduling Task[] - Used to define scheduled tasks such as a manual headroom update.
- service
Account string - The account used by applications running on the VM to call GCP APIs.
- shielded
Instance OceanConfig Launch Spec Shielded Instance Config - The Ocean shielded instance configuration object.
- source
Image string - Image URL.
- storage
Ocean
Launch Spec Storage - The Ocean virtual node group storage object.
- strategies
Ocean
Launch Spec Strategy[] - The Ocean Launch Spec Strategy object.
- string[]
- Every node launched from this configuration will be tagged with those tags. Note: during creation some tags are automatically imported to the state file, it is required to manually add it to the template configuration
- taints
Ocean
Launch Spec Taint[] - Optionally adds labels to instances launched in an Ocean cluster.
- update
Policy OceanLaunch Spec Update Policy
- autoscale_
headrooms Sequence[OceanLaunch Spec Autoscale Headroom Args] - Set custom headroom per launch spec. provide list of headrooms object.
- autoscale_
headrooms_ Sequence[Oceanautomatics Launch Spec Autoscale Headrooms Automatic Args] - Set automatic headroom per launch spec.
- instance_
types Sequence[str] - List of supported machine types for the Launch Spec.
- labels
Sequence[Ocean
Launch Spec Label Args] - Optionally adds labels to instances launched in an Ocean cluster.
- metadatas
Sequence[Ocean
Launch Spec Metadata Args] - Cluster's metadata.
- name str
- The launch specification name.
- network_
interfaces Sequence[OceanLaunch Spec Network Interface Args] - Settings for network interfaces.
- node_
pool_ strname - The node pool you wish to use in your Launch Spec.
- ocean_
id str - The Ocean cluster ID.
- resource_
limits OceanLaunch Spec Resource Limits Args - The Ocean virtual node group resource limits object.
- restrict_
scale_ booldown - Boolean. When set to
true
, VNG nodes will be treated as if all pods running have the restrict-scale-down label. Therefore, Ocean will not scale nodes down unless empty. - root_
volume_ intsize - Root volume size (in GB).
- root_
volume_ strtype - Root volume disk type. Valid values:
"pd-standard"
,"pd-ssd"
. - scheduling_
tasks Sequence[OceanLaunch Spec Scheduling Task Args] - Used to define scheduled tasks such as a manual headroom update.
- service_
account str - The account used by applications running on the VM to call GCP APIs.
- shielded_
instance_ Oceanconfig Launch Spec Shielded Instance Config Args - The Ocean shielded instance configuration object.
- source_
image str - Image URL.
- storage
Ocean
Launch Spec Storage Args - The Ocean virtual node group storage object.
- strategies
Sequence[Ocean
Launch Spec Strategy Args] - The Ocean Launch Spec Strategy object.
- Sequence[str]
- Every node launched from this configuration will be tagged with those tags. Note: during creation some tags are automatically imported to the state file, it is required to manually add it to the template configuration
- taints
Sequence[Ocean
Launch Spec Taint Args] - Optionally adds labels to instances launched in an Ocean cluster.
- update_
policy OceanLaunch Spec Update Policy Args
- autoscale
Headrooms List<Property Map> - Set custom headroom per launch spec. provide list of headrooms object.
- autoscale
Headrooms List<Property Map>Automatics - Set automatic headroom per launch spec.
- instance
Types List<String> - List of supported machine types for the Launch Spec.
- labels List<Property Map>
- Optionally adds labels to instances launched in an Ocean cluster.
- metadatas List<Property Map>
- Cluster's metadata.
- name String
- The launch specification name.
- network
Interfaces List<Property Map> - Settings for network interfaces.
- node
Pool StringName - The node pool you wish to use in your Launch Spec.
- ocean
Id String - The Ocean cluster ID.
- resource
Limits Property Map - The Ocean virtual node group resource limits object.
- restrict
Scale BooleanDown - Boolean. When set to
true
, VNG nodes will be treated as if all pods running have the restrict-scale-down label. Therefore, Ocean will not scale nodes down unless empty. - root
Volume NumberSize - Root volume size (in GB).
- root
Volume StringType - Root volume disk type. Valid values:
"pd-standard"
,"pd-ssd"
. - scheduling
Tasks List<Property Map> - Used to define scheduled tasks such as a manual headroom update.
- service
Account String - The account used by applications running on the VM to call GCP APIs.
- shielded
Instance Property MapConfig - The Ocean shielded instance configuration object.
- source
Image String - Image URL.
- storage Property Map
- The Ocean virtual node group storage object.
- strategies List<Property Map>
- The Ocean Launch Spec Strategy object.
- List<String>
- Every node launched from this configuration will be tagged with those tags. Note: during creation some tags are automatically imported to the state file, it is required to manually add it to the template configuration
- taints List<Property Map>
- Optionally adds labels to instances launched in an Ocean cluster.
- update
Policy Property Map
Supporting Types
OceanLaunchSpecAutoscaleHeadroom, OceanLaunchSpecAutoscaleHeadroomArgs
- 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 (MiB) 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 (MiB) to allocate for each headroom unit.
- num
Of IntegerUnits - The number of units to retain as headroom, where each unit has the defined headroom CPU, memory and GPU.
- cpu
Per IntegerUnit - Optionally configure the number of CPUs to allocate for each headroom unit. CPUs are denoted in millicores, where 1000 millicores = 1 vCPU.
- gpu
Per IntegerUnit - Optionally configure the number of GPUS to allocate for each headroom unit.
- memory
Per IntegerUnit - Optionally configure the amount of memory (MiB) 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 (MiB) 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 (MiB) 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 (MiB) to allocate for each headroom unit.
OceanLaunchSpecAutoscaleHeadroomsAutomatic, OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs
- Auto
Headroom intPercentage - Number between 0-200 to control the headroom % of the specific Virtual Node Group. Effective when cluster.autoScaler.headroom.automatic.
is_enabled
= true is set on the Ocean cluster.
- Auto
Headroom intPercentage - Number between 0-200 to control the headroom % of the specific Virtual Node Group. Effective when cluster.autoScaler.headroom.automatic.
is_enabled
= true is set on the Ocean cluster.
- auto
Headroom IntegerPercentage - Number between 0-200 to control the headroom % of the specific Virtual Node Group. Effective when cluster.autoScaler.headroom.automatic.
is_enabled
= true is set on the Ocean cluster.
- auto
Headroom numberPercentage - Number between 0-200 to control the headroom % of the specific Virtual Node Group. Effective when cluster.autoScaler.headroom.automatic.
is_enabled
= true is set on the Ocean cluster.
- auto_
headroom_ intpercentage - Number between 0-200 to control the headroom % of the specific Virtual Node Group. Effective when cluster.autoScaler.headroom.automatic.
is_enabled
= true is set on the Ocean cluster.
- auto
Headroom NumberPercentage - Number between 0-200 to control the headroom % of the specific Virtual Node Group. Effective when cluster.autoScaler.headroom.automatic.
is_enabled
= true is set on the Ocean cluster.
OceanLaunchSpecLabel, OceanLaunchSpecLabelArgs
OceanLaunchSpecMetadata, OceanLaunchSpecMetadataArgs
OceanLaunchSpecNetworkInterface, OceanLaunchSpecNetworkInterfaceArgs
- Network string
- The name of the network.
- Access
Configs List<Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Network Interface Access Config> - The network protocol of the VNG.
- Alias
Ip List<Pulumi.Ranges Spot Inst. Gke. Inputs. Ocean Launch Spec Network Interface Alias Ip Range> - use the imported node pool’s associated aliasIpRange to assign secondary IP addresses to the nodes. Cannot be changed after VNG creation.
- Project
Id string - Use a network resource from a different project. Set the project identifier to use its network resource. This parameter is relevant only if the network resource is in a different project.
- Network string
- The name of the network.
- Access
Configs []OceanLaunch Spec Network Interface Access Config - The network protocol of the VNG.
- Alias
Ip []OceanRanges Launch Spec Network Interface Alias Ip Range - use the imported node pool’s associated aliasIpRange to assign secondary IP addresses to the nodes. Cannot be changed after VNG creation.
- Project
Id string - Use a network resource from a different project. Set the project identifier to use its network resource. This parameter is relevant only if the network resource is in a different project.
- network String
- The name of the network.
- access
Configs List<OceanLaunch Spec Network Interface Access Config> - The network protocol of the VNG.
- alias
Ip List<OceanRanges Launch Spec Network Interface Alias Ip Range> - use the imported node pool’s associated aliasIpRange to assign secondary IP addresses to the nodes. Cannot be changed after VNG creation.
- project
Id String - Use a network resource from a different project. Set the project identifier to use its network resource. This parameter is relevant only if the network resource is in a different project.
- network string
- The name of the network.
- access
Configs OceanLaunch Spec Network Interface Access Config[] - The network protocol of the VNG.
- alias
Ip OceanRanges Launch Spec Network Interface Alias Ip Range[] - use the imported node pool’s associated aliasIpRange to assign secondary IP addresses to the nodes. Cannot be changed after VNG creation.
- project
Id string - Use a network resource from a different project. Set the project identifier to use its network resource. This parameter is relevant only if the network resource is in a different project.
- network str
- The name of the network.
- access_
configs Sequence[OceanLaunch Spec Network Interface Access Config] - The network protocol of the VNG.
- alias_
ip_ Sequence[Oceanranges Launch Spec Network Interface Alias Ip Range] - use the imported node pool’s associated aliasIpRange to assign secondary IP addresses to the nodes. Cannot be changed after VNG creation.
- project_
id str - Use a network resource from a different project. Set the project identifier to use its network resource. This parameter is relevant only if the network resource is in a different project.
- network String
- The name of the network.
- access
Configs List<Property Map> - The network protocol of the VNG.
- alias
Ip List<Property Map>Ranges - use the imported node pool’s associated aliasIpRange to assign secondary IP addresses to the nodes. Cannot be changed after VNG creation.
- project
Id String - Use a network resource from a different project. Set the project identifier to use its network resource. This parameter is relevant only if the network resource is in a different project.
OceanLaunchSpecNetworkInterfaceAccessConfig, OceanLaunchSpecNetworkInterfaceAccessConfigArgs
OceanLaunchSpecNetworkInterfaceAliasIpRange, OceanLaunchSpecNetworkInterfaceAliasIpRangeArgs
- Ip
Cidr stringRange - specify the IP address range in CIDR notation that can be used for the alias IP addresses associated with the imported node pool.
- Subnetwork
Range stringName - specify the IP address range for the subnet secondary IP range.
- Ip
Cidr stringRange - specify the IP address range in CIDR notation that can be used for the alias IP addresses associated with the imported node pool.
- Subnetwork
Range stringName - specify the IP address range for the subnet secondary IP range.
- ip
Cidr StringRange - specify the IP address range in CIDR notation that can be used for the alias IP addresses associated with the imported node pool.
- subnetwork
Range StringName - specify the IP address range for the subnet secondary IP range.
- ip
Cidr stringRange - specify the IP address range in CIDR notation that can be used for the alias IP addresses associated with the imported node pool.
- subnetwork
Range stringName - specify the IP address range for the subnet secondary IP range.
- ip_
cidr_ strrange - specify the IP address range in CIDR notation that can be used for the alias IP addresses associated with the imported node pool.
- subnetwork_
range_ strname - specify the IP address range for the subnet secondary IP range.
- ip
Cidr StringRange - specify the IP address range in CIDR notation that can be used for the alias IP addresses associated with the imported node pool.
- subnetwork
Range StringName - specify the IP address range for the subnet secondary IP range.
OceanLaunchSpecResourceLimits, OceanLaunchSpecResourceLimitsArgs
- Max
Instance intCount - Option to set a maximum number of instances per virtual node group. Can be null. If set, the value must be greater than or equal to 0.
- Min
Instance intCount - Option to set a minimum number of instances per virtual node group. Can be null. If set, the value must be greater than or equal to 0.
- Max
Instance intCount - Option to set a maximum number of instances per virtual node group. Can be null. If set, the value must be greater than or equal to 0.
- Min
Instance intCount - Option to set a minimum number of instances per virtual node group. Can be null. If set, the value must be greater than or equal to 0.
- max
Instance IntegerCount - Option to set a maximum number of instances per virtual node group. Can be null. If set, the value must be greater than or equal to 0.
- min
Instance IntegerCount - Option to set a minimum number of instances per virtual node group. Can be null. If set, the value must be greater than or equal to 0.
- max
Instance numberCount - Option to set a maximum number of instances per virtual node group. Can be null. If set, the value must be greater than or equal to 0.
- min
Instance numberCount - Option to set a minimum number of instances per virtual node group. Can be null. If set, the value must be greater than or equal to 0.
- max_
instance_ intcount - Option to set a maximum number of instances per virtual node group. Can be null. If set, the value must be greater than or equal to 0.
- min_
instance_ intcount - Option to set a minimum number of instances per virtual node group. Can be null. If set, the value must be greater than or equal to 0.
- max
Instance NumberCount - Option to set a maximum number of instances per virtual node group. Can be null. If set, the value must be greater than or equal to 0.
- min
Instance NumberCount - Option to set a minimum number of instances per virtual node group. Can be null. If set, the value must be greater than or equal to 0.
OceanLaunchSpecSchedulingTask, OceanLaunchSpecSchedulingTaskArgs
- Cron
Expression string - A valid cron expression. For example : " * * * * * ". The cron job runs in UTC time and is in Unix cron format.
- Is
Enabled bool - Describes whether the task is enabled. When True, the task runs. When False, it does not run.
- Task
Type string - The activity that you are scheduling. Valid values: "manualHeadroomUpdate".
- Task
Headrooms List<Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Scheduling Task Task Headroom> - The config of this scheduled task. Depends on the value of taskType.
- Cron
Expression string - A valid cron expression. For example : " * * * * * ". The cron job runs in UTC time and is in Unix cron format.
- Is
Enabled bool - Describes whether the task is enabled. When True, the task runs. When False, it does not run.
- Task
Type string - The activity that you are scheduling. Valid values: "manualHeadroomUpdate".
- Task
Headrooms []OceanLaunch Spec Scheduling Task Task Headroom - The config of this scheduled task. Depends on the value of taskType.
- cron
Expression String - A valid cron expression. For example : " * * * * * ". The cron job runs in UTC time and is in Unix cron format.
- is
Enabled Boolean - Describes whether the task is enabled. When True, the task runs. When False, it does not run.
- task
Type String - The activity that you are scheduling. Valid values: "manualHeadroomUpdate".
- task
Headrooms List<OceanLaunch Spec Scheduling Task Task Headroom> - The config of this scheduled task. Depends on the value of taskType.
- cron
Expression string - A valid cron expression. For example : " * * * * * ". The cron job runs in UTC time and is in Unix cron format.
- is
Enabled boolean - Describes whether the task is enabled. When True, the task runs. When False, it does not run.
- task
Type string - The activity that you are scheduling. Valid values: "manualHeadroomUpdate".
- task
Headrooms OceanLaunch Spec Scheduling Task Task Headroom[] - The config of this scheduled task. Depends on the value of taskType.
- cron_
expression str - A valid cron expression. For example : " * * * * * ". The cron job runs in UTC time and is in Unix cron format.
- is_
enabled bool - Describes whether the task is enabled. When True, the task runs. When False, it does not run.
- task_
type str - The activity that you are scheduling. Valid values: "manualHeadroomUpdate".
- task_
headrooms Sequence[OceanLaunch Spec Scheduling Task Task Headroom] - The config of this scheduled task. Depends on the value of taskType.
- cron
Expression String - A valid cron expression. For example : " * * * * * ". The cron job runs in UTC time and is in Unix cron format.
- is
Enabled Boolean - Describes whether the task is enabled. When True, the task runs. When False, it does not run.
- task
Type String - The activity that you are scheduling. Valid values: "manualHeadroomUpdate".
- task
Headrooms List<Property Map> - The config of this scheduled task. Depends on the value of taskType.
OceanLaunchSpecSchedulingTaskTaskHeadroom, OceanLaunchSpecSchedulingTaskTaskHeadroomArgs
- 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 (MiB) 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 (MiB) to allocate for each headroom unit.
- num
Of IntegerUnits - The number of units to retain as headroom, where each unit has the defined headroom CPU, memory and GPU.
- cpu
Per IntegerUnit - Optionally configure the number of CPUs to allocate for each headroom unit. CPUs are denoted in millicores, where 1000 millicores = 1 vCPU.
- gpu
Per IntegerUnit - Optionally configure the number of GPUS to allocate for each headroom unit.
- memory
Per IntegerUnit - Optionally configure the amount of memory (MiB) 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 (MiB) 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 (MiB) 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 (MiB) to allocate for each headroom unit.
OceanLaunchSpecShieldedInstanceConfig, OceanLaunchSpecShieldedInstanceConfigArgs
- Enable
Integrity boolMonitoring - Boolean. Enable the integrity monitoring parameter on the GCP instances.
- Enable
Secure boolBoot - Boolean. Enable the secure boot parameter on the GCP instances.
- Enable
Integrity boolMonitoring - Boolean. Enable the integrity monitoring parameter on the GCP instances.
- Enable
Secure boolBoot - Boolean. Enable the secure boot parameter on the GCP instances.
- enable
Integrity BooleanMonitoring - Boolean. Enable the integrity monitoring parameter on the GCP instances.
- enable
Secure BooleanBoot - Boolean. Enable the secure boot parameter on the GCP instances.
- enable
Integrity booleanMonitoring - Boolean. Enable the integrity monitoring parameter on the GCP instances.
- enable
Secure booleanBoot - Boolean. Enable the secure boot parameter on the GCP instances.
- enable_
integrity_ boolmonitoring - Boolean. Enable the integrity monitoring parameter on the GCP instances.
- enable_
secure_ boolboot - Boolean. Enable the secure boot parameter on the GCP instances.
- enable
Integrity BooleanMonitoring - Boolean. Enable the integrity monitoring parameter on the GCP instances.
- enable
Secure BooleanBoot - Boolean. Enable the secure boot parameter on the GCP instances.
OceanLaunchSpecStorage, OceanLaunchSpecStorageArgs
- Local
Ssd intCount - Defines the number of local SSDs to be attached per node for this VNG.
- Local
Ssd intCount - Defines the number of local SSDs to be attached per node for this VNG.
- local
Ssd IntegerCount - Defines the number of local SSDs to be attached per node for this VNG.
- local
Ssd numberCount - Defines the number of local SSDs to be attached per node for this VNG.
- local_
ssd_ intcount - Defines the number of local SSDs to be attached per node for this VNG.
- local
Ssd NumberCount - Defines the number of local SSDs to be attached per node for this VNG.
OceanLaunchSpecStrategy, OceanLaunchSpecStrategyArgs
- Preemptible
Percentage int - Defines the desired preemptible percentage for this launch specification.
- Preemptible
Percentage int - Defines the desired preemptible percentage for this launch specification.
- preemptible
Percentage Integer - Defines the desired preemptible percentage for this launch specification.
- preemptible
Percentage number - Defines the desired preemptible percentage for this launch specification.
- preemptible_
percentage int - Defines the desired preemptible percentage for this launch specification.
- preemptible
Percentage Number - Defines the desired preemptible percentage for this launch specification.
OceanLaunchSpecTaint, OceanLaunchSpecTaintArgs
OceanLaunchSpecUpdatePolicy, OceanLaunchSpecUpdatePolicyArgs
- Should
Roll bool - Enables the roll.
- Roll
Config Pulumi.Spot Inst. Gke. Inputs. Ocean Launch Spec Update Policy Roll Config - Holds the roll configuration.
- Should
Roll bool - Enables the roll.
- Roll
Config OceanLaunch Spec Update Policy Roll Config - Holds the roll configuration.
- should
Roll Boolean - Enables the roll.
- roll
Config OceanLaunch Spec Update Policy Roll Config - Holds the roll configuration.
- should
Roll boolean - Enables the roll.
- roll
Config OceanLaunch Spec Update Policy Roll Config - Holds the roll configuration.
- should_
roll bool - Enables the roll.
- roll_
config OceanLaunch Spec Update Policy Roll Config - Holds the roll configuration.
- should
Roll Boolean - Enables the roll.
- roll
Config Property Map - Holds the roll configuration.
OceanLaunchSpecUpdatePolicyRollConfig, OceanLaunchSpecUpdatePolicyRollConfigArgs
- Batch
Size intPercentage - Sets the percentage of the instances to deploy in each batch.
- Batch
Size intPercentage - Sets the percentage of the instances to deploy in each batch.
- batch
Size IntegerPercentage - Sets the percentage of the instances to deploy in each batch.
- batch
Size numberPercentage - Sets the percentage of the instances to deploy in each batch.
- batch_
size_ intpercentage - Sets the percentage of the instances to deploy in each batch.
- batch
Size NumberPercentage - Sets the percentage of the instances to deploy in each batch.
Package Details
- Repository
- Spotinst pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
spotinst
Terraform Provider.