The Cosmos catalog is hosted on a private registry that requires authentication. Before adding the catalog source, you must create a pull secret with your registry credentials.
To discuss registry credentials, contact [email protected]
Create the Pull Secret
Create a docker-registry secret in the openshift-marketplace namespace with your credentials.
oc create secret docker-registry cosmos-registry-credentials \
--namespace=openshift-marketplace \
--docker-server=registry.cosmosdevops.co.uk \
--docker-username=<your-username> \
--docker-password=<your-password>
Alternatively, apply as YAML:
apiVersion: v1
kind: Secret
metadata:
name: cosmos-registry-credentials
namespace: openshift-marketplace
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: <base64-encoded-docker-config>
To generate the base64-encoded value, run:
echo -n '{"auths":{"registry.cosmosdevops.co.uk":{"username":"USER","password":"PASS","auth":"BASE64"}}}' | base64
Verify the Secret
Confirm the secret was created successfully.
oc get secret cosmos-registry-credentials -n openshift-marketplace
Navigate to Secrets
In the OpenShift Console, go to Workloads → Secrets. Select the openshift-marketplace project from the namespace dropdown.
Create Image Pull Secret
Click Create → Image pull secret and enter:
- Secret name: cosmos-registry-credentials
- Authentication type: Image registry credentials
- Registry server address: registry.cosmosdevops.co.uk
- Username: Your provided username
- Password: Your provided password
Click Create to save the secret.