Configure the secrets (1 of 2)

Follow below steps for configuring the secret to authenticate with the Red Hat registry (registry.redhat.io)

  1. Prepare the secret for installating the operators:

    Login with your Red Hat account and create a secret:

    podman login --username "My-RH-username" --password "My-Password" registry.redhat.io --authfile auth.json
    You need to replace My-RH-username and My-Password strings in the above command with the appropriate value.
  2. Ensure that you observe the Login Succeeded! message in the output of the preceding command, then confirm the creation of the auth.json file.

    cat auth.json
  3. Create secret for the registry:

    oc create secret generic osp-operators-secret \
     -n openstack-operators \
     --from-file=.dockerconfigjson=auth.json \
     --type=kubernetes.io/dockerconfigjson
  4. Veify that the secret is created:

    oc get secrets -n openstack-operators osp-operators-secret
    Sample Output
    NAME                   TYPE                             DATA   AGE
    osp-operators-secret   kubernetes.io/dockerconfigjson   1      10s