Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 2.3 KB

File metadata and controls

68 lines (49 loc) · 2.3 KB
page_title cozystack_qdrant Resource - cozystack
subcategory
description A Cozystack managed Qdrant vector database, deployed inside a tenant namespace.

cozystack_qdrant (Resource)

A Cozystack managed Qdrant vector database, deployed inside a tenant namespace.

Example Usage

resource "cozystack_qdrant" "vectors" {
  name      = "vectors"
  namespace = "tenant-root"

  replicas = 2
  size     = "20Gi"
}

Schema

Required

  • name (String) Qdrant instance name (metadata.name). Immutable.
  • namespace (String) Tenant namespace the instance is created in. Immutable.

Optional

  • external (Boolean) Enable external access from outside the cluster.
  • replicas (Number) Number of Qdrant replicas (cluster mode is enabled when > 1).
  • resources (Attributes) Explicit CPU and memory per replica. Overrides resources_preset for any field set. (see below for nested schema)
  • resources_preset (String) Sizing preset applied when resources is omitted (e.g. t1.small).
  • size (String) Persistent volume size for vector data (quantity, e.g. 10Gi).
  • storage_class (String) StorageClass used to store the data.
  • 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) Synthetic identifier in the form namespace/name.
  • ready (Boolean) Whether the instance's Ready condition is true.
  • uid (String) Server-assigned object UID (metadata.uid).

Nested Schema for resources

Optional:

  • cpu (String) CPU available to each replica (quantity, e.g. 500m).
  • memory (String) Memory available to each replica (quantity, e.g. 512Mi).

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Qdrant instances are imported as "<namespace>/<name>".
terraform import cozystack_qdrant.vectors tenant-root/vectors