OpenShift or Kubernetes API Bearer Token credential type
Select this credential type to create instance groups that point to a Kubernetes or OpenShift container.
For more information, see Determine where automation runs with instance groups and Control where automation runs with container groups.
Provide the following information for container credentials:
- OpenShift or Kubernetes API Endpoint (required): The endpoint used to connect to an OpenShift or Kubernetes container.
- API authentication bearer token (required): The token used to authenticate the connection.
- Optional: Verify SSL: You can check this option to verify the server’s SSL/TLS certificate is valid and trusted. Environments that use internal or private Certificate Authority (CA) must leave this option unchecked to disable verification.
- Certificate Authority data: Include the
BEGIN CERTIFICATEandEND CERTIFICATElines when pasting the certificate, if provided.
A container group is a type of instance group that has an associated credential that enables connection to an OpenShift cluster. To set up a container group, you must have the following items:
- A namespace you can start into. Although every cluster has a default namespace, you can use a specific namespace.
- A service account that has the roles that enable it to start and manage pods in this namespace.
- If you use execution environments in a private registry, and have a container registry credential associated with them in automation controller, the service account also requires the roles to get, create, and delete secrets in the namespace.
If you do not want to give these roles to the service account, you can pre-create the
ImagePullSecretsand specify them on the pod spec for the container group. In this case, the execution environment must not have a Container Registry credential associated, or automation controller attempts to create the secret for you in the namespace. - A token associated with that service account (OpenShift or Kubernetes Bearer Token)
- A CA certificate associated with the cluster
Creating a service account in an Openshift cluster Copy linkLink copied!
Create a service account in an Openshift or Kubernetes cluster to be used to run jobs in a container group through automation controller. After you create the service account, its credentials are provided to automation controller in the form of an Openshift or Kubernetes API bearer token credential.
About this task Copy linkLink copied!
After you create a service account, use the information in the new service account to configure automation controller.