Skip to content

Commit

Permalink
Make zk disruption budget conditional and disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
freyes committed Dec 13, 2024
1 parent 220e3a5 commit b9ed878
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ resource "kubernetes_deployment" "nodepool_deployment" {
}

resource "kubernetes_pod_disruption_budget" "zookeeper" {
count = var.enable_zk_disruption_budget ? 1 : 0
metadata {
name = "zookeeper"
namespace = kubernetes_namespace.zuul.metadata[0].name
Expand Down
6 changes: 6 additions & 0 deletions infrastructure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@ variable "nodepool_ssh_key_path" {
type = string
description = "Path to the public ssh key the nodepool nodes will be created with"
}

variable "enable_zk_disruption_budget" {
type = bool
default = false
description = "Enable zookeeper disruption budget declaration for HA scenarios"
}

0 comments on commit b9ed878

Please sign in to comment.