Skip to content

Instantly share code, notes, and snippets.

@balamuru
Created May 19, 2022 23:12
Show Gist options
  • Save balamuru/fa7dd147c8ae7fc62d81a00487dae337 to your computer and use it in GitHub Desktop.
Save balamuru/fa7dd147c8ae7fc62d81a00487dae337 to your computer and use it in GitHub Desktop.
# log in using your dockerhub username password
$ docker login
$ oc create secret generic regcred --from-file=.dockerconfigjson=/home/ocadmin/.docker/config.json --type=kubernetes.io/dockerconfigjson
$ oc edit sa default
==== add following ==>
imagePullSecrets:
- name: regcred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment