» spotinst_ocean_gke_launch_spec

Provides a custom Spotinst Ocean GKE Launch Spec resource.

» Example Usage

resource "spotinst_ocean_gke_launch_spec" "example" {
  ocean_id     = "o-123456"
  source_image = "image"

  metadata {
    key   = "gci-update-strategy"
    value = "update_disabled"
  }

  labels {
    key   = "labelKey"
    value = "labelVal"
  }

  taints {
    key    = "taintKey"
    value  = "taintVal"
    effect = "taintEffect"
  }

  autoscale_headrooms {
    num_of_units = 5
    cpu_per_unit = 1000
    gpu_per_unit = 0
    memory_per_unit = 2048
  }
}

» Argument Reference

The following arguments are supported:

  • ocean_id - (Required) The Ocean cluster ID required for launchSpec create.
  • source_image - (Required) Image URL.
  • metadata - (Required) Cluster's metadata.
  • taints - (Optional) Cluster's taints.
  • labels - (Optional) Cluster's labels.
  • autoscale_headrooms - (Optional) Set custom headroom per launch spec. provide list of headrooms object.
    • num_of_units - (Required) The number of units to retain as headroom, where each unit has the defined headroom CPU, memory and GPU.
    • cpu_per_unit - (Optional) Optionally configure the number of CPUs to allocate for each headroom unit. CPUs are denoted in millicores, where 1000 millicores = 1 vCPU.
    • gpu_per_unit - (Optional) Optionally configure the number of GPUS to allocate for each headroom unit.
    • memory_per_unit - (Optional) Optionally configure the amount of memory (MB) to allocate for each headroom unit.