Skip to content

Commit 4cbc05f

Browse files
authored
Merge pull request #78934 from shdeshpa07/OADP-1443-credentials-dpa
OADP-1443 - updated dpa for oadp 1.2 and 1.3 for volume snapshot credential
2 parents 2c2c136 + 0b495fb commit 4cbc05f

File tree

2 files changed

+158
-133
lines changed

2 files changed

+158
-133
lines changed

modules/oadp-installing-dpa-1-2-and-earlier.adoc

Lines changed: 64 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -61,35 +61,39 @@ spec:
6161
configuration:
6262
velero:
6363
defaultPlugins:
64-
- openshift <1>
64+
- openshift # <1>
6565
- aws
66-
resourceTimeout: 10m <2>
66+
resourceTimeout: 10m # <2>
6767
restic:
68-
enable: true <3>
68+
enable: true # <3>
6969
podConfig:
70-
nodeSelector: <node_selector> <4>
70+
nodeSelector: <node_selector> # <4>
7171
backupLocations:
7272
- name: default
7373
velero:
7474
provider: {provider}
7575
default: true
7676
objectStorage:
77-
bucket: <bucket_name> <5>
78-
prefix: <prefix> <6>
77+
bucket: <bucket_name> # <5>
78+
prefix: <prefix> # <6>
7979
config:
8080
region: <region>
8181
profile: "default"
82-
s3ForcePathStyle: "true" <7>
83-
s3Url: <s3_url> <8>
82+
s3ForcePathStyle: "true" # <7>
83+
s3Url: <s3_url> # <8>
8484
credential:
8585
key: cloud
86-
name: {credentials} <9>
87-
snapshotLocations: <10>
86+
name: {credentials} # <9>
87+
snapshotLocations: # <10>
8888
- velero:
8989
provider: {provider}
9090
config:
91-
region: <region> <11>
91+
region: <region> # <11>
9292
profile: "default"
93+
credential:
94+
key: cloud
95+
name: {credentials} # <12>
96+
9397
----
9498
<1> The `openshift` plugin is mandatory.
9599
<2> Specify how many minutes to wait for several Velero resources before timeout occurs, such as Velero CRD availability, volumeSnapshot deletion, and backup repository availability. The default is 10m.
@@ -102,6 +106,7 @@ spec:
102106
<9> Specify the name of the `Secret` object that you created. If you do not specify this value, the default name, `{credentials}`, is used. If you specify a custom name, the custom name is used for the backup location.
103107
<10> Specify a snapshot location, unless you use CSI snapshots or Restic to back up PVs.
104108
<11> The snapshot location must be in the same region as the PVs.
109+
<12> Specify the name of the `Secret` object that you created. If you do not specify this value, the default name, `{credentials}`, is used. If you specify a custom name, the custom name is used for the snapshot location. If your backup and snapshot locations use different credentials, create separate profiles in the `credentials-velero` file.
105110
endif::[]
106111
ifdef::installing-oadp-azure[]
107112
+
@@ -117,35 +122,38 @@ spec:
117122
velero:
118123
defaultPlugins:
119124
- azure
120-
- openshift <1>
121-
resourceTimeout: 10m <2>
125+
- openshift # <1>
126+
resourceTimeout: 10m # <2>
122127
restic:
123-
enable: true <3>
128+
enable: true # <3>
124129
podConfig:
125-
nodeSelector: <node_selector> <4>
130+
nodeSelector: <node_selector> # <4>
126131
backupLocations:
127132
- velero:
128133
config:
129-
resourceGroup: <azure_resource_group> <5>
130-
storageAccount: <azure_storage_account_id> <6>
131-
subscriptionId: <azure_subscription_id> <7>
134+
resourceGroup: <azure_resource_group> # <5>
135+
storageAccount: <azure_storage_account_id> # <6>
136+
subscriptionId: <azure_subscription_id> # <7>
132137
storageAccountKeyEnvVar: AZURE_STORAGE_ACCOUNT_ACCESS_KEY
133138
credential:
134139
key: cloud
135-
name: {credentials} <8>
140+
name: {credentials} # <8>
136141
provider: {provider}
137142
default: true
138143
objectStorage:
139-
bucket: <bucket_name> <9>
140-
prefix: <prefix> <10>
141-
snapshotLocations: <11>
144+
bucket: <bucket_name> # <9>
145+
prefix: <prefix> # <10>
146+
snapshotLocations: # <11>
142147
- velero:
143148
config:
144149
resourceGroup: <azure_resource_group>
145150
subscriptionId: <azure_subscription_id>
146151
incremental: "true"
147152
name: default
148153
provider: {provider}
154+
credential:
155+
key: cloud
156+
name: {credentials} # <12>
149157
----
150158
<1> The `openshift` plugin is mandatory.
151159
<2> Specify how many minutes to wait for several Velero resources before timeout occurs, such as Velero CRD availability, volumeSnapshot deletion, and backup repository availability. The default is 10m.
@@ -158,6 +166,7 @@ spec:
158166
<9> Specify a bucket as the backup storage location. If the bucket is not a dedicated bucket for Velero backups, you must specify a prefix.
159167
<10> Specify a prefix for Velero backups, for example, `velero`, if the bucket is used for multiple purposes.
160168
<11> You do not need to specify a snapshot location if you use CSI snapshots or Restic to back up PVs.
169+
<12> Specify the name of the `Secret` object that you created. If you do not specify this value, the default name, `{credentials}`, is used. If you specify a custom name, the custom name is used for the backup location.
161170
endif::[]
162171
ifdef::installing-oadp-gcp[]
163172
+
@@ -173,29 +182,32 @@ spec:
173182
velero:
174183
defaultPlugins:
175184
- gcp
176-
- openshift <1>
177-
resourceTimeout: 10m <2>
185+
- openshift # <1>
186+
resourceTimeout: 10m # <2>
178187
restic:
179-
enable: true <3>
188+
enable: true # <3>
180189
podConfig:
181-
nodeSelector: <node_selector> <4>
190+
nodeSelector: <node_selector> # <4>
182191
backupLocations:
183192
- velero:
184193
provider: {provider}
185194
default: true
186195
credential:
187-
key: cloud <5>
188-
name: {credentials} <6>
196+
key: cloud # <5>
197+
name: {credentials} # <6>
189198
objectStorage:
190-
bucket: <bucket_name> <7>
191-
prefix: <prefix> <8>
192-
snapshotLocations: <9>
199+
bucket: <bucket_name> # <7>
200+
prefix: <prefix> # <8>
201+
snapshotLocations: # <9>
193202
- velero:
194203
provider: {provider}
195204
default: true
196205
config:
197206
project: <project>
198-
snapshotLocation: us-west1 <10>
207+
snapshotLocation: us-west1 # <10>
208+
credential:
209+
key: cloud
210+
name: {credentials} # <11>
199211
----
200212
<1> The `openshift` plugin is mandatory.
201213
<2> Specify how many minutes to wait for several Velero resources before timeout occurs, such as Velero CRD availability, volumeSnapshot deletion, and backup repository availability. The default is 10m.
@@ -207,6 +219,7 @@ spec:
207219
<8> Specify a prefix for Velero backups, for example, `velero`, if the bucket is used for multiple purposes.
208220
<9> Specify a snapshot location, unless you use CSI snapshots or Restic to back up PVs.
209221
<10> The snapshot location must be in the same region as the PVs.
222+
<11> Specify the name of the `Secret` object that you created. If you do not specify this value, the default name, `{credentials}`, is used. If you specify a custom name, the custom name is used for the snapshot location.
210223
endif::[]
211224
ifdef::installing-oadp-mcg[]
212225
+
@@ -222,28 +235,28 @@ spec:
222235
velero:
223236
defaultPlugins:
224237
- aws
225-
- openshift <1>
226-
resourceTimeout: 10m <2>
238+
- openshift # <1>
239+
resourceTimeout: 10m # <2>
227240
restic:
228-
enable: true <3>
241+
enable: true # <3>
229242
podConfig:
230-
nodeSelector: <node_selector> <4>
243+
nodeSelector: <node_selector> # <4>
231244
backupLocations:
232245
- velero:
233246
config:
234247
profile: "default"
235248
region: minio
236-
s3Url: <url> <5>
249+
s3Url: <url> # <5>
237250
insecureSkipTLSVerify: "true"
238251
s3ForcePathStyle: "true"
239252
provider: {provider}
240253
default: true
241254
credential:
242255
key: cloud
243-
name: {credentials} <6>
256+
name: {credentials} # <6>
244257
objectStorage:
245-
bucket: <bucket_name> <7>
246-
prefix: <prefix> <8>
258+
bucket: <bucket_name> # <7>
259+
prefix: <prefix> # <8>
247260
----
248261
<1> The `openshift` plugin is mandatory.
249262
<2> Specify how many minutes to wait for several Velero resources before timeout occurs, such as Velero CRD availability, volumeSnapshot deletion, and backup repository availability. The default is 10m.
@@ -267,25 +280,25 @@ spec:
267280
configuration:
268281
velero:
269282
defaultPlugins:
270-
- kubevirt <1>
271-
- gcp <2>
272-
- csi <3>
273-
- openshift <4>
274-
resourceTimeout: 10m <5>
283+
- kubevirt # <1>
284+
- gcp # <2>
285+
- csi # <3>
286+
- openshift # <4>
287+
resourceTimeout: 10m # <5>
275288
restic:
276-
enable: true <6>
289+
enable: true # <6>
277290
podConfig:
278-
nodeSelector: <node_selector> <7>
291+
nodeSelector: <node_selector> # <7>
279292
backupLocations:
280293
- velero:
281-
provider: {provider} <8>
294+
provider: {provider} # <8>
282295
default: true
283296
credential:
284297
key: cloud
285-
name: <default_secret> <9>
298+
name: <default_secret> # <9>
286299
objectStorage:
287-
bucket: <bucket_name> <10>
288-
prefix: <prefix> <11>
300+
bucket: <bucket_name> # <10>
301+
prefix: <prefix> # <11>
289302
----
290303
<1> Optional: The `kubevirt` plugin is used with {VirtProductName}.
291304
<2> Specify the default plugin for the backup provider, for example, `gcp`, if appropriate.

0 commit comments

Comments
 (0)