Skip to content

Instantly share code, notes, and snippets.

@ikurni
Created May 27, 2020 07:05
Show Gist options
  • Save ikurni/7c932b08a81a26cfbe017556584140a2 to your computer and use it in GitHub Desktop.
Save ikurni/7c932b08a81a26cfbe017556584140a2 to your computer and use it in GitHub Desktop.
Openshift Deploy an Apps pulling from External Registry
To deploy apps in openshift using private image registry with password, need to :
1) Create secret to the private registry :
oc create secret docker-registry <pull_secret_name> \
--docker-server=<registry_server> \
--docker-username=<user_name> \
--docker-password=<password> \
--docker-email=<email>
2) Put pull secret to default ServiceAccount (assume deployment using SA default) :
oc secrets link default <pull_secret_name> --for=pull
3) Create an image stream tag to openshift project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment