Skip to content

Commit

Permalink
chore: add variables for rebalancing
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-svensson committed Jun 13, 2022
1 parent 1bfcf8d commit cd4d39a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ resource "kops_cluster" "k8s" {
enabled = true
enable_sqs_termination_draining = var.node_termination_handler_sqs
managed_asg_tag = var.node_termination_handler_sqs ? "aws-node-termination-handler/managed" : null
enable_rebalance_draining = true
enable_rebalance_monitoring = true
enable_rebalance_draining = var.enable_rebalance_draining
enable_rebalance_monitoring = var.enable_rebalance_monitoring
}

service_account_issuer_discovery {
Expand Down
12 changes: 12 additions & 0 deletions vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,18 @@ variable "node_termination_handler_sqs" {
description = "Use SQS for Node Termination Handler draining"
}

variable "enable_rebalance_draining" {
type = bool
default = false
description = "Whether node termination handler drain nodes when the re-balance recommendation notice is received or not"
}

variable "enable_rebalance_monitoring" {
type = bool
default = false
description = "Whether node termination handler cordon nodes when the re-balance recommendation notice is received or not"
}

variable "docker_config" {
type = string
default = "{}"
Expand Down

0 comments on commit cd4d39a

Please sign in to comment.