redhat-cop / ocp4-helpernode

This playbook helps set up an "all-in-one" node, that has all the infrastructure/services in order to install OpenShift 4.
335 stars 301 forks source link

Bootstrap and install with only some nodes booted #282

Open bassplay3r opened 2 years ago

bassplay3r commented 2 years ago

We need to test adding and removing nodes, workers most likely. If I define nodes in vars.yaml but do not boot some of them, will the booted nodes bootstrap and install? What happens if I boot the additional nodes and the cluster is up. Do they auto join or will I have to do extra steps?

christianh814 commented 2 years ago

When the workers boot they should join automatically since the Control Plane is the one that hosts the machineConfig API. The only issue you might run to is Certs not being valid (since the initial worker.ign embeds the temp cert for bootstrapping)

When in doubt, use oc extract -n openshift-machine-api secret/worker-user-data --keys=userData --to=- to get the latest woker.ign file and use that for bootstrapping other workers.