Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit 07a607f

Browse files
author
Fahim Abrar
committed
Add condition for 6 masters
1 parent 780da58 commit 07a607f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module "nodes" {
5858

5959
module "loadbalancer" {
6060
source = "./modules/loadbalancer"
61-
addl_master_count = "${var.addl-masters}"
61+
addl_master_count = "${var.addl-masters > 5 ? "5" : var.addl-masters}"
6262
cluster_name = "${var.cluster_name == "" ? terraform.workspace : var.cluster_name}"
6363
master_ip = "${module.masters.k8s_master_private_ip}"
6464
master_label = "${module.masters.label[0]}"

0 commit comments

Comments
 (0)