Customize pod specifications to improve performance
You can use the following procedure to customize the pod.
Procedure Copy linkLink copied!
- In the navigation panel, select .
- Check .
- In the Pod Spec Override field, specify the namespace by using the toggle to enable and expand the Pod Spec Override field.
- Click .
- Optional: Click to view the entire customization window if you want to provide additional customizations.
What to do next Copy linkLink copied!
The image used at job launch time is determined by the execution environment associated with the job. If a Container Registry credential is associated with the execution environment, then automation controller uses ImagePullSecret to pull the image. If you prefer not to give the service account permission to manage secrets, you must pre-create the ImagePullSecret, specify it on the pod specification, and omit any credential from the execution environment used.
Enable pods to reference images from other secured registries Copy linkLink copied!
If a container group uses a container from a secured registry that requires a credential, you can associate a Container Registry credential with the Execution Environment that is assigned to the job template.
About this task Copy linkLink copied!
Automation controller uses this to create an ImagePullSecret for you in the OpenShift Container Platform namespace where the container group job runs, and cleans it up after the job is done.
Alternatively, if the ImagePullSecret already exists in the container group namespace, you can specify the ImagePullSecret in the custom pod specification for the ContainerGroup.
Note that the image used by a job running in a container group is always overridden by the Execution Environment associated with the job.
Use of pre-created ImagePullSecrets (Advanced) If you want to use this workflow and pre-create the ImagePullSecret, you can source the necessary information to create it from your local .dockercfg file on a system that has previously accessed a secure container registry.
The .dockercfg file, or $HOME/.docker/config.json for newer Docker clients, is a Docker credentials file that stores your information if you have previously logged into a secured or insecure registry.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
When the container group is successfully created, the Details tab of the newly created container group remains. This allows you to review and edit your container group information. This is the same menu that is opened if you click the icon ✎ from the Instance Group link. You can also edit instances and review jobs associated with this instance group.