Skip to content

Commit

Permalink
openshift: dual_api_ip/dual_ingress_ip
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Dec 15, 2023
1 parent 14a6406 commit db3e03d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kvirt/cluster/openshift/kcli_default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,5 @@ minimal_capability: False
additional_capabilities: []
autologin: false
coredns_nameserver:
dual_api_ip:
dual_ingress_ip:
40 changes: 40 additions & 0 deletions kvirt/cluster/openshift/keepalived.conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,43 @@ vrrp_instance {{ cluster }}.{{ domain }}_INGRESS {
}
}
{% endif %}

{% if dualstack and dual_api_ip != None and ':' in dual_api_ip %}
vrrp_instance {{ cluster }}.{{ domain }}_DUAL_API {
state MASTER
interface NIC
virtual_router_id {{ virtual_router_id + 2 if virtual_router_id != None else 202 }}
priority 101
advert_int 1
authentication {
auth_type PASS
auth_pass {{ auth_pass | default(1111) }}
}
virtual_ipaddress {
{{ dual_api_ip }}/64
}
track_script {
chk_ocp
}
}
{% endif %}

{% if dualstack and dual_ingress_ip != None and ':' in dual_ingress_ip %}
vrrp_instance {{ cluster }}.{{ domain }}_DUAL_INGRESS {
state MASTER
interface NIC
virtual_router_id {{ virtual_router_id + 3 if virtual_router_id != None else 202 }}
priority 101
advert_int 1
authentication {
auth_type PASS
auth_pass {{ auth_pass | default(1111) }}
}
virtual_ipaddress {
{{ dual_ingress_ip }}/64
}
track_script {
chk_ocp
}
}
{% endif %}

0 comments on commit db3e03d

Please sign in to comment.