Updating the IBM entitlement key in the imagePullSecrets by using Kubernetes CLI

A secret that is named ibm-entitlement-key is mandatory within the project to pull the application images that are used within Engineering Lifecycle Management on Hybrid Cloud containers. You can update the IBM® entitlement key that is configured in ibm-entitlement-key secret according to your requirements. You can use the command line method for Kubernetes to update the entitlement key.

Before you begin

Procedure

Complete the following steps to update the IBM entitlement key in the image pull secret.
Note: For more information about creating the image pull secret, see Creating the imagePullSecrets for Engineering Lifecycle Management instance.
  1. Log in to Kubernetes cluster with CLI and set current context to your namespace.
  2. Create ibm-entitlement-key as a secret to your Kubernetes cluster.
    Note: This name is hardcoded in the operator
    kind: Secret 
    apiVersion: v1 
    metadata: 
      name: ibm-entitlement-key 
      namespace: <namespace_name> 
    data: 
      .dockerconfigjson: <base64 encoded string> 
    type: kubernetes.io/dockerconfigjson
  3. Create the secret by using following command
    kubectl create –f ./secret.yaml
  4. Update the changed secrets by editing the secret.yaml and apply the change manifest to your cluster by using the following command
    kubectl apply -f ./secret.yaml