Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 2.45 KB

File metadata and controls

49 lines (39 loc) · 2.45 KB
page_title duploai_k8s_pvc Data Source - duploai
subcategory
description Manages a DuploCloud AI Helpdesk Kubernetes PersistentVolumeClaim (PVC).

duploai_k8s_pvc (Data Source)

Manages a DuploCloud AI Helpdesk Kubernetes PersistentVolumeClaim (PVC).

Example Usage

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

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

Schema

Required

  • id (String) ID of the object to look up.
  • workspace_id (String) ID of the workspace that owns this persistent volume claim.

Read-Only

  • access_modes (List of String) Access modes for the volume. One or more of: ReadWriteOnce, ReadOnlyMany, ReadWriteMany, ReadWriteOncePod.
  • description (String) Optional description.
  • environment_id (String) ID of the environment that owns the resource group (EKS cluster) this claim belongs to. Required: the backend does not derive it, and resources created without it cannot be loaded by env/RG-scoped lookups.
  • k8s_pvc_id (String) ID of this persistent volume claim, for reference by dependent resources.
  • name (String) Name of the persistent volume claim. Must be a DNS-1123 label (lowercase alphanumeric and '-', starting and ending with an alphanumeric).
  • namespace_name (String) Kubernetes namespace the claim is created in. Must reference an existing, fully provisioned namespace in the same resource group.
  • resource_group_id (String) ID of the resource group (EKS cluster) this persistent volume claim belongs to.
  • scope_ids (List of String) Scope IDs that link this claim to a cloud provider account. Inherited from the resource group.
  • status (String) Current provisioning status.
  • storage (String) Requested storage size as a Kubernetes quantity, e.g. "10Gi". May be increased on update (volume expansion) but not decreased.
  • storage_class_name (String) Name of the StorageClass to provision from. Must be a storage class available in the cluster; when omitted the cluster's default StorageClass is used.
  • volume_mode (String) How the volume is consumed: Filesystem (default) or Block.
  • volume_name (String) Name of a specific PersistentVolume to bind to (static binding). When omitted it is assigned by the cluster once the claim is bound.