Skip to content

Latest commit

 

History

History
77 lines (53 loc) · 2.16 KB

kafka.md

File metadata and controls

77 lines (53 loc) · 2.16 KB
page_title cozystack_kafka Data Source - cozystack
subcategory
description Read an existing Cozystack Kafka cluster by name and namespace.

cozystack_kafka (Data Source)

Read an existing Cozystack Kafka cluster by name and namespace.

Example Usage

data "cozystack_kafka" "events" {
  name      = "events"
  namespace = "tenant-root"
}

Schema

Required

  • name (String) Kafka instance name.
  • namespace (String) Tenant namespace.

Read-Only

  • chart_version (String) Deployed chart version.
  • external (Boolean) Whether external access is enabled.
  • id (String) Synthetic identifier namespace/name.
  • kafka (Attributes) Kafka broker configuration. (see below for nested schema)
  • ready (Boolean) Whether the application's Ready condition is true.
  • tls (Attributes) TLS configuration for the external listener. (see below for nested schema)
  • topics (Attributes List) Provisioned topics. (see below for nested schema)
  • uid (String) Server-assigned object UID (metadata.uid).

Nested Schema for kafka

Read-Only:

  • replicas (Number) Number of replicas.
  • resources (Attributes) Explicit CPU and memory per replica, when set. (see below for nested schema)
  • resources_preset (String) Sizing preset.
  • size (String) Persistent volume size.
  • storage_class (String) StorageClass used to store the data.

Nested Schema for kafka.resources

Read-Only:

  • cpu (String) CPU available to each replica.
  • memory (String) Memory available to each replica.

Nested Schema for tls

Read-Only:

  • enabled (Boolean) Whether TLS is explicitly enabled or disabled. Null when the instance inherits external.

Nested Schema for topics

Read-Only:

  • name (String) Topic name.
  • partitions (Number) Number of partitions.
  • replicas (Number) Number of replicas.