Skip to content

Latest commit

 

History

History
78 lines (55 loc) · 2.85 KB

File metadata and controls

78 lines (55 loc) · 2.85 KB
page_title cozystack_foundationdb Resource - cozystack
subcategory
description A Cozystack managed FoundationDB cluster, deployed inside a tenant namespace. The cluster topology, deprecated backup, monitoring, and securityContext blocks use server defaults.

cozystack_foundationdb (Resource)

A Cozystack managed FoundationDB cluster, deployed inside a tenant namespace. The cluster topology, deprecated backup, monitoring, and securityContext blocks use server defaults.

Example Usage

resource "cozystack_foundationdb" "fdb" {
  name      = "fdb"
  namespace = "tenant-root"

  resources_preset = "c1.medium"
  storage          = { size = "32Gi" }
  image_type       = "unified"
}

Schema

Required

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

Optional

  • automatic_replacements (Boolean) Enable automatic pod replacements.
  • custom_parameters (List of String) Custom parameters passed to FoundationDB.
  • image_type (String) Container image deployment type (unified or split).
  • 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.
  • storage (Attributes) Persistent storage configuration. (see below for nested schema)
  • 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 application's Ready condition is true.
  • uid (String) Server-assigned object UID (metadata.uid). Stable across updates; changes on recreate.

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).

Nested Schema for storage

Optional:

  • size (String) Size of persistent volumes for each instance.
  • storage_class (String) StorageClass used to store the data.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# FoundationDB instances are imported as "<namespace>/<name>".
terraform import cozystack_foundationdb.fdb tenant-root/fdb