Skip to content

Commit 3683b77

Browse files
committed
openshift: allow 2 ctlplanes
1 parent 860a8fa commit 3683b77

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

kvirt/cluster/openshift/install-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ controlPlane:
4646
replicas: {{ 1 if sno or sno_vm else ctlplanes }}
4747
{% if techpreview %}
4848
featureSet: TechPreviewNoUpgrade
49+
{% elif ctlplanes == 2 %}
50+
fencing:
51+
credentials:
52+
{% for num in range(0, 2) %}
53+
- hostname: {{ cluster }}-ctlplane-{{ num }}.{{ domain }}
54+
address: {{ ksushy_protocol }}://{{ ksushy_ip }}:{{ ksushy_port }}/redfish/v1/Systems/{{ config_client }}/{{ cluster }}-ctlplane-{{ num }}
55+
username: {{ bmc_user|default('dummy') }}
56+
password: {{ bmc_password|default('dummy') }}
57+
certificateVerification: Disabled
58+
{% endfor %}
59+
featureSet: DevPreviewNoUpgrade
4960
{% endif %}
5061
metadata:
5162
name: {{ cluster }}

kvirt/cluster/openshift/kcli_default.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,6 @@ prega: false
176176
virtualization_nightly: false
177177
techpreview: false
178178
mirror_dir:
179+
ksushy_protocol: https
180+
ksushy_ip: 192.168.122.1
181+
ksushy_port: 9000

0 commit comments

Comments
 (0)