Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Automation Execution

Create OpenShift or Kubernetes API Bearer Token Credentials

You can create OpenShift or Kubernetes API Bearer token credential types. These credential types enable you create instance groups that point to a Kubernetes or OpenShift container. You can also use these credentials to access an OpenShift cluster from your automation jobs by using a service account.
Follow these steps to create a service account and generate the required token and CA certificate:
  1. Create a service account in the AAP namespace:
  2. Bind the cluster-admin role to the service account:
  3. Generate a long-lived token:
    Note:

    Use kubectl create token even if oc is available, as older versions of oc (< 4.11) do not support the create token subcommand.

  4. Export the cluster CA certificate: