Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.8 KB

File metadata and controls

53 lines (38 loc) · 1.8 KB
page_title cozystack_scheduling_class Resource - cozystack
subcategory
description A Cozystack SchedulingClass (cluster-scoped, cozystack.io group): named placement policy (nodeSelector/affinities/topologySpreadConstraints). The spec is surfaced as JSON.

cozystack_scheduling_class (Resource)

A Cozystack SchedulingClass (cluster-scoped, cozystack.io group): named placement policy (nodeSelector/affinities/topologySpreadConstraints). The spec is surfaced as JSON.

Example Usage

resource "cozystack_scheduling_class" "gpu" {
  name = "gpu"
  spec = jsonencode({
    nodeSelector = { "nvidia.com/gpu.present" = "true" }
  })
}

Schema

Required

  • name (String) SchedulingClass name (metadata.name). Immutable.

Optional

  • spec (String) Full SchedulingClass spec as JSON (nodeSelector, nodeAffinity, podAffinity, podAntiAffinity, topologySpreadConstraints).
  • wait_for_ready (Boolean) Block on create/update until the tenant's Ready condition is true.
  • wait_timeout (String) Maximum time to wait when wait_for_ready is set (Go duration, e.g. 10m).

Read-Only

  • chart_version (String) Deployed chart version (status.version).
  • id (String) Object name (cluster-scoped).
  • ready (Boolean) Whether the application's Ready condition is true.
  • uid (String) Server-assigned object UID (metadata.uid). Stable across updates; changes on recreate.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Cluster-scoped: import by name only.
terraform import cozystack_scheduling_class.example name