Skip to content

Instantly share code, notes, and snippets.

@siegy22
Created March 11, 2025 18:14
Show Gist options
  • Save siegy22/749d8c8f2d222e8dbeaa793f70b42eb4 to your computer and use it in GitHub Desktop.
Save siegy22/749d8c8f2d222e8dbeaa793f70b42eb4 to your computer and use it in GitHub Desktop.
OpenShift setup with Harbor as proxy cache
  • Download the pull secret from RedHat cloud console.
  • Un-base64 the auths for all of the registries
  • Configure registry caches in Harbor
  • Configure imageContentSources in the install-config.yaml
apiVersion: v1
baseDomain: example.org
metadata:
  name: ocp
# ...
pullSecret: '{"auths":{"harbor.example.org":{"auth":"YWRtaW46SGFyYm9yMTIzNDU=" }}}'
imageContentSources:
  - mirrors:
    - harbor.example.org/quay.io
    source: quay.io
  - mirrors:
    - harbor.example.org/registry.redhat.io
    source: registry.redhat.io
  - mirrors:
    - harbor.example.org/registry.connect.redhat.com
    source: registry.connect.redhat.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment