Use MachineSet with VMware UPI setup¶
Warning
Work-in-progress and don't work! Tried with OCP 4.5
WTF: https://access.redhat.com/solutions/5086271
- Create VMware template VM base on 4.5 OVA
- Edit MachineSet
- Update template (Add VM template name)
-
Update Network Config ( json path:
.spec.template.spec.providerSpec.value.network.devices[0].networkName
) -
Problem in my env: VM start without hostname (localhost) - because dhcp do not send any hostname!
- Add vSphere IPI Core set the hostname to the VM name in vSphere:
- Those script and service only added if
Infra.Status.PlatformStatus.VSphere.APIServerInternalIP
is set! - "Work-a-round": Set the hostname via CLI:
/usr/bin/hostnamectl --transient --static set-hostname XXX
- Next problem: Nobody approved the CSR! If you approve via oc adm certificate approve, the node joins but the machineset didn't recognise.
-
Machine is still in provisioning. (oc get machine)
-
Problem
machine does not have valid node reference
-> https://bugzilla.redhat.com/show_bug.cgi?id=1834966
Notes during the VMware IPI installation¶
https://github.com/openshift/installer/blob/master/docs/user/vsphere/install.md
Install vCenter root ca¶
1 2 3 4 |
|
Bug:¶
Problem if basedomain
ends with a .
...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
Last update: December 6, 2020