Skip to content

Commit

Permalink
Merge pull request #531 from prb112/OPENSHIFTP-174
Browse files Browse the repository at this point in the history
OPENSHIFTP-174: generate a stable graph for the load balancer members
  • Loading branch information
ppc64le-cloud-bot authored Jul 27, 2024
2 parents 344c4fb + 2bc6cda commit a71b28e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/7_ibmcloud/load_balancer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@

################################################################
##### Network topology requirements
##### Ref: https://docs.openshift.com/container-platform/4.7/installing/installing_platform_agnostic/installing-platform-agnostic.html
##### Ref: https://docs.openshift.com/container-platform/4.16/installing/installing_platform_agnostic/installing-platform-agnostic.html#installation-network-user-infra_installing-platform-agnostic
##### Note: You remove the bootstrap machine from the load balancer after the bootstrap machine initializes the cluster control plane.
################################################################

locals {
api_servers = var.bootstrap_count == 0 ? var.master_ips : concat([var.bootstrap_ip], var.master_ips)
api_servers = var.bootstrap_count == 0 ? var.master_ips : concat(var.master_ips, [var.bootstrap_ip])
api_servers_count = var.bootstrap_count + var.master_count
apps_servers = var.worker_count == 0 ? var.master_ips : var.worker_ips
apps_servers_count = var.worker_count == 0 ? var.master_count : var.worker_count
Expand Down

0 comments on commit a71b28e

Please sign in to comment.