okd-project / okd

The self-managing, auto-upgrading, Kubernetes distribution for everyone
https://okd.io
Apache License 2.0
1.77k stars 297 forks source link

[OKD FCOS 4.15] Change Master and Worker IP Address to another subnet range #1992

Closed parseltongued closed 3 months ago

parseltongued commented 3 months ago

Describe the bug I have an existing 3-node OKD FCOS 4.15 airgap cluster and i'm looking to export the entire cluster to a different IP subnet range (Old IP range: 172.17.12. to New IP range: 192.168.20.) but no fqdn change. My on-prem dns and dhcp servers, "Mirror registry for Red Hat OpenShift" and HAProxy are working on the new IP address range. The 3 master nodes have new IP addresses however they are not starting up (HAProxy 6443, 22623 is a flat red).

Although i've installed the cluster by specifying fqdn, suspecting it used the resolved IP to create the SSL cert, if so I need to recreate them, but I can't use oc commands because 6443 is not up.

How should I proceed and is there a proven procedure to change entire OKD cluster subnet?

Cluster environment OKD Cluster Version: 4.15.0-0.okd-2024-03-10-010116 Kernel version: v1.28.2-3598+6e2789bbd58938-dirty Installation method: Bare-metal UPI (Airgapped, self hosted quay)