1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

OSDOCS-16550: Updated the comment on images-update-global-pull-secret

This commit is contained in:
dfitzmau
2025-10-20 15:02:29 +01:00
committed by openshift-cherrypick-robot
parent d02d91deb0
commit 8ac1000a1d

View File

@@ -34,17 +34,16 @@ endif::image-pull-secrets[]
* You have access to the cluster as a user with the `cluster-admin` role.
.Procedure
. Optional: To append a new pull secret to the existing pull secret, complete the following steps:
+
.. Enter the following command to download the pull secret:
+
[source,terminal]
----
$ oc get secret/pull-secret -n openshift-config \
--template='{{index .data ".dockerconfigjson" | base64decode}}' \
<pull_secret_location> <1>
$ oc get secret/pull-secret -n openshift-config --template='{{index .data ".dockerconfigjson" | base64decode}}' > <pull_secret_location> <1>
----
<1> Include the path to the pull secret file.
<1> `<pull_secret_location>`: Include the path to the pull secret file.
+
.. Enter the following command to add the new pull secret:
+
@@ -54,9 +53,9 @@ $ oc registry login --registry="<registry>" \ <1>
--auth-basic="<username>:<password>" \ <2>
--to=<pull_secret_location> <3>
----
<1> Include the new registry. You can include many repositories within the same registry, for example: `--registry="<registry/my-namespace/my-repository>"`.
<2> Include the credentials of the new registry.
<3> Include the path to the pull secret file.
<1> `<registry>`: Include the new registry. You can include many repositories within the same registry, for example: `--registry="<registry/my-namespace/my-repository>`.
<2> `<username>:<password>`: Include the credentials of the new registry.
<3> `<pull_secret_location>`: Include the path to the pull secret file.
+
You can also perform a manual update to the pull secret file.
@@ -67,7 +66,7 @@ You can also perform a manual update to the pull secret file.
$ oc set data secret/pull-secret -n openshift-config \
--from-file=.dockerconfigjson=<pull_secret_location> <1>
----
<1> Include the path to the new pull secret file.
<1> `<pull_secret_location>`: Include the path to the new pull secret file.
+
This update rolls out to all nodes, which can take some time depending on the size of your cluster.
+