1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/oadp-configuring-imagepullpolicy.adoc
Shruti Deshpande df08472502 OADP-6250-mod-docs-aws
Signed-off-by: Shruti Deshpande <shdeshpa@redhat.com>
2025-07-10 08:05:45 +00:00

66 lines
2.0 KiB
Plaintext

// Module included in the following assemblies:
//
// * backup_and_restore/application_backup_and_restore/installing/installing-oadp-aws.adoc
:_mod-docs-content-type: PROCEDURE
[id="oadp-configuring-imagepullpolicy_{context}"]
= Overriding the imagePullPolicy setting in the DPA
[role="_abstract"]
In {oadp-short} 1.4.0 or earlier, the Operator sets the `imagePullPolicy` field of the Velero and node agent pods to `Always` for all images.
In {oadp-short} 1.4.1 or later, the Operator first checks if each image has the `sha256` or `sha512` digest and sets the `imagePullPolicy` field accordingly:
* If the image has the digest, the Operator sets `imagePullPolicy` to `IfNotPresent`.
* If the image does not have the digest, the Operator sets `imagePullPolicy` to `Always`.
You can also override the `imagePullPolicy` field by using the `spec.imagePullPolicy` field in the Data Protection Application (DPA).
.Prerequisites
* You have installed the {oadp-short} Operator.
.Procedure
* Configure the `spec.imagePullPolicy` field in the DPA as shown in the following example:
+
.Example Data Protection Application
[source,yaml]
----
apiVersion: oadp.openshift.io/v1alpha1
kind: DataProtectionApplication
metadata:
name: test-dpa
namespace: openshift-adp
spec:
backupLocations:
- name: default
velero:
config:
insecureSkipTLSVerify: "true"
profile: "default"
region: <bucket_region>
s3ForcePathStyle: "true"
s3Url: <bucket_url>
credential:
key: cloud
name: cloud-credentials
default: true
objectStorage:
bucket: <bucket_name>
prefix: velero
provider: aws
configuration:
nodeAgent:
enable: true
uploaderType: kopia
velero:
defaultPlugins:
- openshift
- aws
- kubevirt
- csi
imagePullPolicy: Never # <1>
----
<1> Specify the value for `imagePullPolicy`. In this example, the `imagePullPolicy` field is set to `Never`.