How to retrieve Master or Worker Ignition Configuration from OpenShift Container Platform 4?

Solution Verified - Updated -

Environment

  • Red Hat OpenShift Container Platform 4.x

Issue

  • How can I retrieve the Master or Worker Ignition configuration from OpenShift Container Platform?

Resolution

  • To retrieve the Master Ignition Configuration run the following command:

    oc extract -n openshift-machine-api secret/master-user-data --keys=userData --to=-

  • To retrieve the Worker Igniton Configuration run the following command:

    oc extract -n openshift-machine-api secret/worker-user-data --keys=userData --to=-

NOTE: in the context of a platform-agnostic deployment, the master-user-data & worker-user-data secrets are only added at cluster-bootstrap time. Alternatively, an up-to-date copy of the control plane & worker ignition files can be obtained from api-int, while following the steps described in this parallel Knowledge Base solution.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments