Pod
Table of Contents
Introduction
Before we start, we want to make sure private test image is built and push into a private registry. The image includes installation of the product and test operators, test framework and other dependencies.
Creating Pod
There are several important parameters we need to define on a pod spec:
Containers image: this is the quay.io registry image along with tag.
Containers command and args: this is the command you want to run inside the container.
Containers env: multiple environmental variables could be used in a pod. One of the them is KUBECONFIG, which defines where is cluster kubeconfig located.
volumeMount: defines the mount path for kubeconfig.
imagePullSecrets: defines the secret name to access private registry.
Running Pod
A pod is started with a bash command by 'oc create -f ..'. It automatically pulls test images and runs the tests command with kubeconfig and environemtal variables configred. Once the tests finish, the artifacts are saved before the pod is deleted.
Pod Example
Below is a pod we are using to run our tests:
Pod
Last updated