Pull secret management
You can manage your cluster pull secrets by downloading them from the console or updating them globally.
Pull secret creation Copy linkLink copied!
You can create a new pull secret if your current one stops working or you need to rotate it for security reasons.
Creating a new pull secret requires the ocm-cli tool. For more information, see Using the ocm-cli to manage clusters in OpenShift Cluster Manager, linked in Additional resources.
Download the pull secret from OpenShift Cluster Manager Copy linkLink copied!
An image pull secret provides authentication for the cluster to access services and registries which serve the container images for OpenShift components. Every individual user gets a single pull secret generated.
Before you begin Copy linkLink copied!
- A Red Hat login
About this task Copy linkLink copied!
The pull secret is used when installing an OpenShift Container Platform cluster. It is also used by OpenShift Cluster Manager to identify a specific Red Hat user when transferring cluster ownership. To transfer a cluster to another owner, you need to download the pull secret for the user that will take ownership of the cluster.
Procedure Copy linkLink copied!
Update the global pull secret Copy linkLink copied!
An image pull secret provides authentication for the cluster to access services and registries which serve the container images for OpenShift components. Every individual user gets a single pull secret generated.
Before you begin Copy linkLink copied!
- You must be the Cluster Owner or an Organization Administrator.
- You must have a new or modified pull secret file to upload. You can download your pull secret from the Downloads page under Tokens.
- You must have access to the cluster as a user with the
cluster-adminrole. See Authentication and authorization in the OpenShift Container Platform documentation for more information about cluster roles. - If you are transferring the cluster to a new owner, you must initiate the transfer in OpenShift Cluster Manager before changing the global pull secret, so that you keep receiving Telemetry metrics for the cluster.
About this task Copy linkLink copied!
The pull secret is used when installing an OpenShift Container Platform cluster and when transferring cluster ownership.
To transfer a connected cluster to a new owner, you must update the pull secret to the new owner’s pull secret. Do this after initiating the cluster transfer in OpenShift Cluster Manager. The pull secret must be updated within five days of initiating the transfer, or you must restart the transfer process. See Cluster ownership transfer.
On clusters using OpenShift Container Platform versions earlier than 4.7.4, cluster resources must adjust to the new pull secret. This can temporarily limit the usability of the cluster. This occurs because updating the pull secret causes the Machine Config Operator to drain the nodes, apply the change, and uncordon the nodes.
This does not affect clusters using OpenShift Container Platform versions 4.7.4 and later, where a pull secret change does not cause a node drain or reboot.