Skip to content

Instantly share code, notes, and snippets.

@williamcaban
Created November 8, 2019 22:35
Show Gist options
  • Save williamcaban/8f4e8d90f9f9df8ef2555260c2f6f8ef to your computer and use it in GitHub Desktop.
Save williamcaban/8f4e8d90f9f9df8ef2555260c2f6f8ef to your computer and use it in GitHub Desktop.

Updating cluster level pull-secret from JSON file

The OCP4 cluster level pull-secret is used to source the default authorization keys to pull containers from external registries. To update from an existing pull-secret.json file execute:

oc create secret generic pull-secret \
    --from-file=.dockerconfigjson=<./pull-secret.json> \
    --type=kubernetes.io/dockerconfigjson \
    -n openshift-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment