Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ArangoGutierrez/42f393ddae682707892125d228824416 to your computer and use it in GitHub Desktop.
Save ArangoGutierrez/42f393ddae682707892125d228824416 to your computer and use it in GitHub Desktop.
## OpenShift4 pull-secret:
1. Download your pull-secret from [openshift.com/try](https://cloud.redhat.com/openshift/install/aws/installer-provisioned)
- click on “Download Pull Secret”. Save it somewhere, e.g. ~/some-dir/pull-secret
2. Add the apps.ci auth to pull-secret! _internal OpenShift developers only_
- Obtain an API token by visiting https://oauth-openshift.apps.ci.l2s4.p1.openshiftapps.com/oauth/token/request
copy the oc login cmd and paste in terminal to login to the ci cluster, then run this:
- `$ oc registry login --to ~/some-dir/pull-secret`
This will append the auth from registry.ci.openshift.org to your cloud.openshift.com pull-secret but it will also
make the pull-secret multi-line.
3. `$ jq -c < ~/some-dir/pull-secret`
- run this jq cmd to get the single-line pull-secret to pass to openshift-installer and/or to create an install-config.yaml
@ArangoGutierrez
Copy link
Author

OpenShift4 pull-secret:

  1. Download your pull-secret from openshift.com/try
    • click on “Download Pull Secret”. Save it somewhere, e.g. ~/some-dir/pull-secret
  2. Add the apps.ci auth to pull-secret! internal OpenShift developers only
    • Obtain an API token by visiting https://oauth-openshift.apps.ci.l2s4.p1.openshiftapps.com/oauth/token/request
      copy the oc login cmd and paste in terminal to login to the ci cluster, then run this:
    • $ oc registry login --to ~/some-dir/pull-secret
      This will append the auth from registry.ci.openshift.org to your cloud.openshift.com pull-secret but it will also
      make the pull-secret multi-line.
  3. $ jq -c < ~/some-dir/pull-secret
    • run this jq cmd to get the single-line pull-secret to pass to openshift-installer and/or to create an install-config.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment