Skip to content

Commit 649084f

Browse files
authored
Merge pull request #1762 from aileenjackson/AJ_UpdateImagesEmbedWorkflow_latest
Embedded Workflows on OCP docker custom pull secret
2 parents 1f67145 + c23a746 commit 649084f

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

managing_providers/_topics/embedded_workflows.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,11 @@ Workflows must be authored in Amazon State Languages (ASL) format. As part of au
169169

170170
When you have the code for your task resource written, you need to bundle it into a docker image. You can bundle the code by creating a standard [Dockerfile](https://docs.docker.com/engine/reference/builder/) and building the image (https://docs.docker.com/engine/reference/commandline/build/). Then, you can push the image to a [registry](https://docs.docker.com/engine/reference/commandline/push/), which makes the image available to be used by {{ site.data.product.title_short }}. When you have pushed your images to an image registry, you can add the registry to {{ site.data.product.title_short }}.
171171

172-
* On appliances, `podman` is used to execute the container
172+
Pull secrets for containers are used differently between appliances and the OpenShift Container Platform (OCP). These differences are outlined in the following sections.
173173

174-
On appliances, `podman` is used to execute the container so use [podman login](https://docs.podman.io/en/stable/markdown/podman-login.1.html) as the `manageiq` user.
174+
#### Running an Embedded Workflow on Appliances
175+
176+
* On appliances, `podman` is used to execute the container so use [podman login](https://docs.podman.io/en/stable/markdown/podman-login.1.html) as the `manageiq` user.
175177

176178
```text
177179
# su manageiq
@@ -181,12 +183,30 @@ Workflows must be authored in Amazon State Languages (ASL) format. As part of au
181183
Login Succeeded!
182184
```
183185
186+
Images are pulled to a local directory /var/www/miq/vmdb/data/containers/storage as the default /home/manageiq partition has insufficient space to store large images.
187+
184188
You are recommended to use a docker.io [access token](https://docs.docker.com/security/for-developers/access-tokens/) so that the token does not expire.
185189
186190
* Provide an image pull secret to a podified Kubernetes container, and then add it to a service account
187191
188192
In order to pull an image from a private registry you have to provide an `ImagePullSecret` to your containers, see [Pull an Image from a Private Registry](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/). {{ site.data.product.title_short }} uses a service account called {{ site.data.product.workflow_service_account }} to run containers for your workflows. You can add an `ImagePullSecret` to this service account by following [Add Image Pull Secrets to a service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account/).
189193
194+
#### Running an Embedded Workflow on the OpenShift Container Platform (OCP)
195+
196+
If the user is running an embedded workflow on OCP, and is using a docker repository requiring a custom pull secret for their container images, the following steps need to be carried out.
197+
198+
1. Create a pull secret for the repository in question in the same namespace as {{ site.data.product.title_short }}, for example:
199+
200+
```
201+
oc create secret docker-registry <pull-secret-name> --docker-server=<docker-server> --docker-username=<docker-username> --docker-password=<docker-password>
202+
```
203+
204+
2. Add this pull secret to the {{ site.data.product.workflow_service_account }}, for example:
205+
206+
```
207+
oc secret link {{ site.data.product.workflow_service_account }} <pull-secret-name> --for=pull
208+
```
209+
190210
#### Example: Provisioning Workflow
191211
192212
```asl

0 commit comments

Comments
 (0)