Skip to content

Commit 68965a7

Browse files
committed
Add secret file format for object storage
Signed-off-by: Shruti Deshpande <shdeshpa@redhat.com>
1 parent 90230ce commit 68965a7

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

modules/oadp-creating-default-secret.adoc

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,43 @@ If you do not want to use the backup location credentials during the installatio
3030

3131
* Your object storage and cloud storage, if any, must use the same credentials.
3232
* You must configure object storage for Velero.
33-
* You must create a `credentials-velero` file for the object storage in the appropriate format.
3433
3534
.Procedure
3635

37-
* Create a `Secret` with the default name:
36+
. Create a `credentials-velero` file for the backup storage location in the appropriate format for your cloud provider.
37+
38+
ifdef::installing-oadp-aws,installing-oadp-mcg,installing-oadp-ocs[]
39+
+
40+
See the following example:
41+
+
42+
[source,terminal]
43+
----
44+
[default]
45+
aws_access_key_id=<AWS_ACCESS_KEY_ID>
46+
aws_secret_access_key=<AWS_SECRET_ACCESS_KEY>
47+
----
48+
endif::[]
49+
ifdef::installing-oadp-azure[]
50+
+
51+
See the following example:
52+
+
53+
[source,terminal]
54+
----
55+
AZURE_SUBSCRIPTION_ID= <azure_subscription_id>
56+
AZURE_TENANT_ID=<azure_tenant_id>
57+
AZURE_CLIENT_ID=<azure_client_id>
58+
AZURE_CLIENT_SECRET=<azure_client_secret>
59+
AZURE_STORAGE_ACCOUNT_ACCESS_KEY=<azure_storage_account_access_key>
60+
AZURE_RESOURCE_GROUP=<azure_resource_group>
61+
AZURE_CLOUD_NAME=<azure_cloud_name>
62+
----
63+
endif::[]
64+
65+
. Create a `Secret` custom resource (CR) with the default name:
3866
+
3967
[source,terminal,subs="attributes+"]
4068
----
4169
$ oc create secret generic {credentials} -n openshift-adp --from-file cloud=credentials-velero
4270
----
4371

44-
The `Secret` is referenced in the `spec.backupLocations.credential` block of the `DataProtectionApplication` CR when you install the Data Protection Application.
72+
The `Secret` is referenced in the `spec.backupLocations.credential` block of the `DataProtectionApplication` CR when you install the Data Protection Application.

0 commit comments

Comments
 (0)