Skip to content

Commit 67dd24c

Browse files
committed
offset topic replication factor as variable
1 parent f751f52 commit 67dd24c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ resource "kubernetes_stateful_set" "kafka" {
291291
}
292292
env {
293293
name = "KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR"
294-
value = "3"
294+
value = "${var.offset_topic_replication_factor}"
295295
}
296296
env {
297297
name = "KAFKA_ZOOKEEPER_CONNECT"

variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
variable "namespace" {}
22
variable "kafka_name" {}
33
variable "cluster_size" {}
4+
variable "offset_topic_replication_factor" {}
45
variable "zookeeper_cluster_size" {}

0 commit comments

Comments
 (0)