[OCP] Unable to specify local registry login credentials for custom pods
Summary
Hey all, I'm trying to set up multiuser OCP Eclipse Che in a corporate environment behind a proxy. I made custom versions of the Che Broker Pod images, because I needed them to include special certificates. For security reasons, I need to place the images in a local Docker registry, rather than online on DockerHub.
I am able to tell my Che project to pull my custom images from my local registry. However, I get the following error in the pod when it tries to call the image from the registry:
Failed to pull image "((RegistryIP)):5000/amdocs-che-unified-plugin-broker:myamdocstag": rpc error: code = Unknown desc = unauthorized: authentication required
This, of course, means that OCP needs the login credentials for the registry. No problem. I made an image secret called private-registry-secret with the registry IP and port, the username and password needed for the registry. I also linked it to the service account che-workspace (Which as far as I know, is used by the plugin broker pod), by going to the service account and editing its YAML file to include the private-registry-secret secret.
However, this didn't seem to have any effect and the image is still unable to be pulled. Am I missing something? Is there a different way to give the pod the login credentials needed for the registry?
I'm open to any and all ideas. Please advise.
Relevant information
As mentioned, I am using a custom version of the Che Plugin Broker images. They're identical to the current version with the exception that they contain our private docker registries. I am deploying on OCP using the deploy_che.sh script (chectl is not able to deploy projects for me for some reason)
/cc @ibuziuk
Pinging this issue. If it is currently impossible to specify login credentials for the registry, that's fine too. I'd just like to know for certain :)
Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.
Mark the issue as fresh with /remove-lifecycle stale in a new comment.
If this issue is safe to close now please do so.
Moderators: Add lifecycle/frozen label to avoid stale mode.