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

Commit

Permalink
Add condition for 6 masters
Browse files Browse the repository at this point in the history
  • Loading branch information
Fahim Abrar committed May 21, 2019
1 parent 780da58 commit 07a607f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module "nodes" {

module "loadbalancer" {
source = "./modules/loadbalancer"
addl_master_count = "${var.addl-masters}"
addl_master_count = "${var.addl-masters > 5 ? "5" : var.addl-masters}"
cluster_name = "${var.cluster_name == "" ? terraform.workspace : var.cluster_name}"
master_ip = "${module.masters.k8s_master_private_ip}"
master_label = "${module.masters.label[0]}"
Expand Down

0 comments on commit 07a607f

Please sign in to comment.