Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 2.01 KB

File metadata and controls

45 lines (35 loc) · 2.01 KB
page_title duploai_k8s_resource_quota Data Source - duploai
subcategory
description Manages a DuploCloud AI Helpdesk Kubernetes ResourceQuota. A ResourceQuota enforces per-namespace compute and object limits.

duploai_k8s_resource_quota (Data Source)

Manages a DuploCloud AI Helpdesk Kubernetes ResourceQuota. A ResourceQuota enforces per-namespace compute and object limits.

Example Usage

# Look up a Kubernetes ResourceQuota by ID.
data "duploai_k8s_resource_quota" "example" {
  workspace_id = "<workspace-id>"
  id           = "<object-id>"
}

output "status" {
  value = data.duploai_k8s_resource_quota.example.status
}

Schema

Required

  • id (String) ID of the object to look up.
  • workspace_id (String) ID of the workspace that owns this resource quota.

Read-Only

  • description (String) Optional description.
  • environment_id (String) ID of the environment that owns the resource group.
  • hard (Map of String) Hard resource limits enforced by this quota. Keys are Kubernetes resource names (e.g. "cpu", "memory", "pods", "requests.cpu", "limits.memory") and values are Kubernetes quantity strings (e.g. "4", "8Gi", "100").
  • k8s_resource_quota_id (String) ID of this resource quota, for reference by dependent resources.
  • name (String) Name of the resource quota. Must be a DNS-1123 label (lowercase alphanumeric and '-', starting and ending with an alphanumeric).
  • namespace_name (String) Kubernetes namespace the resource quota is applied to.
  • resource_group_id (String) ID of the resource group (EKS cluster) this resource quota belongs to.
  • scopes (List of String) Optional list of scopes that restrict which resources this quota applies to (e.g. "Terminating", "NotTerminating", "BestEffort", "NotBestEffort", "PriorityClass"). Immutable: changing this value forces replacement of the resource quota.
  • status (String) Current provisioning status.