Option 1: Use Oracle Container Registry

On your development host, create a Kubernetes image pull secret in your Kubernetes cluster. A Kubernetes Secret takes a copy of your credentials from a docker login command and makes them available to your Kubernetes cluster.

When you completed Task 3: Pull Container Image from Oracle Container Registry to Your Development Host in Option 1: Get Container Image from Oracle Container Registry, you performed the docker login command.

  1. (Optional): Confirm the credentials are stored in the config.json file.
    cat $HOME/.docker/config.json
    The output contains the auth token for container-registry.oracle.com.
    {
            "auths": {
                    "container-registry.oracle.com": {
                            "auth": "z1SbLO4JgwqzLEn1ZxJ"}
                    
                     }
    }
  2. Create the image pull secret. This example creates the sekret secret.
    kubectl create secret generic sekret \
    --from-file=.dockerconfigjson=$HOME/.docker/config.json \
    --type=kubernetes.io/dockerconfigjson
  3. (Optional): Confirm the Secret is created in your Kubernetes cluster.
    kubectl get secrets
    NAME                               TYPE                             DATA   AGE
    sekret                             kubernetes.io/dockerconfigjson   1      1d
    

Note:

Save the name of the Secret. You need it later.

For more information, see Pulling Images from Registry during Deployment in the Kubernetes documentation.

Next Steps

Proceed to Part 3: Obtain TimesTen YAML Manifest Files and Helm Charts.