Skip to content

Commit

Permalink
openshift: set correct number of replicas for ingress on single ctlplane
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Apr 4, 2024
1 parent 5423828 commit d81e65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kvirt/cluster/openshift/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ def create(config, plandir, cluster, overrides, dnsconfig=None):
for f in glob(f"{plandir}/customisation/*.yaml"):
if '99-ingress-controller.yaml' in f:
ingressrole = 'master' if workers == 0 or not mdns or kubevirt_api_service else 'worker'
replicas = 1 if sno or len(baremetal_hosts) == 1 else 2
replicas = 1 if sno or (ctlplanes == 1 and workers == 0) or len(baremetal_hosts) == 1 else 2
bm_workers = len(baremetal_hosts) > 0 and workers > 0
if provider in virt_providers and (worker_localhost_fix or bm_workers):
replicas = ctlplanes
Expand Down

0 comments on commit d81e65f

Please sign in to comment.