Skip to content

Commit 6801f4b

Browse files
committed
Improve mirror registry auth handling
1 parent f7edad8 commit 6801f4b

1 file changed

Lines changed: 5 additions & 28 deletions

File tree

content/cluster-installation/disconnected/installation.md

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -681,37 +681,14 @@ Obtain your [pull secret from Red Hat OpenShift Cluster Manager](https://console
681681

682682
Make a copy of your pull secret in JSON format by running the following command:
683683

684-
Paste the content in the file pull-scret. Then:
685-
686-
`cat ./pull-secret | jq . > $(pwd)/pull-secret.json`
687-
688-
Replace the existing `auth.json` file in $XDG_RUNTIME_DIR/containers/
689-
690-
```code
691-
sudo mv pull-secret.json $XDG_RUNTIME_DIR/containers/auth.json
684+
```shell
685+
cp pull-secret.json $XDG_RUNTIME_DIR/containers/auth.json
692686
```
693687

694-
Next up is to generate the base64-encoded user name and password or token for your mirror registry by running the following command:
695-
696-
`echo -n '<user_name>:<password>' | base64 -w0`
697-
698-
For <user_name> and <password>, specify the user name and password that you configured for your registry.
699-
700-
Example:
701-
702-
`echo -n 'init:r3dh4t1!' | base64 -w0`
688+
Next step is to add your mirror registry credentials:
703689

704-
Edit the JSON file and add a section that describes your registry to it:
705-
706-
```json
707-
"auths": {
708-
"rguske-rhel9-disco-bastion.rguske.coe.muc.redhat.com:8443": {
709-
"auth": "aW5pdDpyM2RoNHQxIQ==",
710-
"email": "rguske@redhat.com"
711-
},
712-
"cloud.openshift.com": {
713-
714-
[...]
690+
```shell
691+
podman login --authfile $XDG_RUNTIME_DIR/containers/auth.json rguske-rhel9-disco-bastion.rguske.coe.muc.redhat.com:8443
715692
```
716693

717694
## Creating the image set configuration

0 commit comments

Comments
 (0)