Skip to content

Commit 4774128

Browse files
authored
Merge pull request #103604 from openshift-cherrypick-robot/cherry-pick-103262-to-enterprise-4.19
[enterprise-4.19] Convert callouts and remove block titles
2 parents c5b87ec + ffc7a84 commit 4774128

File tree

5 files changed

+86
-66
lines changed

5 files changed

+86
-66
lines changed

modules/oadp-usecase-backup-odf.adoc

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,36 +25,41 @@ In this use case, you back up an application by using {oadp-short} and store the
2525

2626
. Create an OBC manifest file to request a NooBaa MCG bucket as shown in the following example:
2727
+
28-
.Example OBC
2928
[source,yaml]
3029
----
3130
apiVersion: objectbucket.io/v1alpha1
3231
kind: ObjectBucketClaim
3332
metadata:
34-
name: test-obc # <1>
33+
name: test-obc
3534
namespace: openshift-adp
3635
spec:
3736
storageClassName: openshift-storage.noobaa.io
38-
generateBucketName: test-backup-bucket # <2>
37+
generateBucketName: test-backup-bucket
3938
----
40-
<1> The name of the object bucket claim.
41-
<2> The name of the bucket.
39+
+
40+
where:
41+
+
42+
`test-obc`:: Specifies the name of the object bucket claim.
43+
`test-backup-bucket`:: Specifies the name of the bucket.
4244

4345
. Create the OBC by running the following command:
4446
+
4547
[source,terminal]
4648
----
47-
$ oc create -f <obc_file_name> # <1>
49+
$ oc create -f <obc_file_name>
4850
----
49-
<1> Specify the file name of the object bucket claim manifest.
51+
+
52+
where:
53+
+
54+
`<obc_file_name>`:: Specifies the file name of the object bucket claim manifest.
5055

5156
. When you create an OBC, {odf-short} creates a `secret` and a `config map` with the same name as the object bucket claim. The `secret` has the bucket credentials, and the `config map` has information to access the bucket. To get the bucket name and bucket host from the generated config map, run the following command:
5257
+
5358
[source,terminal]
5459
----
55-
$ oc extract --to=- cm/test-obc # <1>
60+
$ oc extract --to=- cm/test-obc
5661
----
57-
<1> `test-obc` is the name of the OBC.
62+
`test-obc` is the name of the OBC.
5863
+
5964
.Example output
6065
[source,terminal]
@@ -115,7 +120,6 @@ $ oc create secret generic \
115120

116121
. Configure the Data Protection Application (DPA) as shown in the following example:
117122
+
118-
.Example DPA
119123
[source,yaml]
120124
----
121125
apiVersion: oadp.openshift.io/v1alpha1
@@ -133,13 +137,13 @@ spec:
133137
- aws
134138
- openshift
135139
- csi
136-
defaultSnapshotMoveData: true # <1>
140+
defaultSnapshotMoveData: true
137141
backupLocations:
138142
- velero:
139143
config:
140144
profile: "default"
141145
region: noobaa
142-
s3Url: https://s3.openshift-storage.svc # <2>
146+
s3Url: https://s3.openshift-storage.svc
143147
s3ForcePathStyle: "true"
144148
insecureSkipTLSVerify: "true"
145149
provider: aws
@@ -148,12 +152,15 @@ spec:
148152
key: cloud
149153
name: cloud-credentials
150154
objectStorage:
151-
bucket: <bucket_name> # <3>
155+
bucket: <bucket_name>
152156
prefix: oadp
153157
----
154-
<1> Set to true to use the {oadp-short} Data Mover to enable movement of Container Storage Interface (CSI) snapshots to a remote object storage.
155-
<2> This is the S3 URL of {odf-short} storage.
156-
<3> Specify the bucket name.
158+
+
159+
where:
160+
+
161+
`defaultSnapshotMoveData`:: Set to `true` to use the {oadp-short} Data Mover to enable movement of Container Storage Interface (CSI) snapshots to a remote object storage.
162+
`s3Url`:: Specifies the S3 URL of {odf-short} storage.
163+
`<bucket_name>`:: Specifies the bucket name.
157164

158165
. Create the DPA by running the following command:
159166
+
@@ -170,7 +177,6 @@ $ oc get dpa -o yaml
170177
----
171178
+
172179
.Example output
173-
+
174180
[source,yaml]
175181
----
176182
apiVersion: v1
@@ -213,7 +219,6 @@ dpa-sample-1 Available 3s 15s true
213219

214220
. Configure a backup CR as shown in the following example:
215221
+
216-
.Example backup CR
217222
[source,yaml]
218223
----
219224
apiVersion: velero.io/v1
@@ -223,9 +228,12 @@ metadata:
223228
namespace: openshift-adp
224229
spec:
225230
includedNamespaces:
226-
- <application_namespace> # <1>
231+
- <application_namespace>
227232
----
228-
<1> Specify the namespace for the application to back up.
233+
+
234+
where:
235+
+
236+
`<application_namespace>`:: Specifies the namespace for the application to back up.
229237

230238
. Create the backup CR by running the following command:
231239
+

modules/oadp-usecase-include-ca-cert-backup.adoc

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,22 @@ To prevent a `certificate signed by unknown authority` error, you must include a
2626

2727
. Create an OBC manifest to request a NooBaa bucket as shown in the following example:
2828
+
29-
.Example `ObjectBucketClaim` CR
3029
[source,yaml]
3130
----
3231
apiVersion: objectbucket.io/v1alpha1
3332
kind: ObjectBucketClaim
3433
metadata:
35-
name: test-obc # <1>
34+
name: test-obc
3635
namespace: openshift-adp
3736
spec:
3837
storageClassName: openshift-storage.noobaa.io
39-
generateBucketName: test-backup-bucket # <2>
38+
generateBucketName: test-backup-bucket
4039
----
41-
<1> Specifies the name of the object bucket claim.
42-
<2> Specifies the name of the bucket.
40+
+
41+
where:
42+
+
43+
`test-obc`:: Specifies the name of the object bucket claim.
44+
`test-backup-bucket`:: Specifies the name of the bucket.
4345

4446
. Create the OBC by running the following command:
4547
+
@@ -52,9 +54,9 @@ $ oc create -f <obc_file_name>
5254
+
5355
[source,terminal]
5456
----
55-
$ oc extract --to=- cm/test-obc # <1>
57+
$ oc extract --to=- cm/test-obc
5658
----
57-
<1> The name of the OBC is `test-obc`.
59+
`test-obc` is the name of the OBC.
5860
+
5961
.Example output
6062
[source,terminal]
@@ -115,7 +117,6 @@ $ oc get cm/openshift-service-ca.crt \
115117
----
116118
+
117119
.Example output
118-
+
119120
[source,terminal]
120121
----
121122
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0...
@@ -124,7 +125,6 @@ LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0...
124125

125126
. Configure the `DataProtectionApplication` CR manifest file with the bucket name and CA certificate as shown in the following example:
126127
+
127-
.Example `DataProtectionApplication` CR
128128
[source,yaml]
129129
----
130130
apiVersion: oadp.openshift.io/v1alpha1
@@ -150,20 +150,23 @@ spec:
150150
region: noobaa
151151
s3Url: https://s3.openshift-storage.svc
152152
s3ForcePathStyle: "true"
153-
insecureSkipTLSVerify: "false" # <1>
153+
insecureSkipTLSVerify: "false"
154154
provider: aws
155155
default: true
156156
credential:
157157
key: cloud
158158
name: cloud-credentials
159159
objectStorage:
160-
bucket: <bucket_name> # <2>
160+
bucket: <bucket_name>
161161
prefix: oadp
162-
caCert: <ca_cert> # <3>
162+
caCert: <ca_cert>
163163
----
164-
<1> The `insecureSkipTLSVerify` flag can be set to either `true` or `false`. If set to "true", SSL/TLS security is disabled. If set to `false`, SSL/TLS security is enabled.
165-
<2> Specify the name of the bucket extracted in an earlier step.
166-
<3> Copy and paste the `Base64` encoded certificate from the previous step.
164+
+
165+
where:
166+
+
167+
`insecureSkipTLSVerify`:: Specifies whether SSL/TLS security is enabled. If set to `true`, SSL/TLS security is disabled. If set to `false`, SSL/TLS security is enabled.
168+
`<bucket_name>`:: Specifies the name of the bucket extracted in an earlier step.
169+
`<ca_cert>`:: Specifies the `Base64` encoded certificate from the previous step.
167170

168171
. Create the `DataProtectionApplication` CR by running the following command:
169172
+
@@ -180,7 +183,6 @@ $ oc get dpa -o yaml
180183
----
181184
+
182185
.Example output
183-
+
184186
[source,yaml]
185187
----
186188
apiVersion: v1
@@ -223,7 +225,6 @@ dpa-sample-1 Available 3s 15s true
223225

224226
. Configure the `Backup` CR by using the following example:
225227
+
226-
.Example `Backup` CR
227228
[source,yaml]
228229
----
229230
apiVersion: velero.io/v1
@@ -233,9 +234,12 @@ metadata:
233234
namespace: openshift-adp
234235
spec:
235236
includedNamespaces:
236-
- <application_namespace> # <1>
237+
- <application_namespace>
237238
----
238-
<1> Specify the namespace for the application to back up.
239+
+
240+
where:
241+
+
242+
`<application_namespace>`:: Specifies the namespace for the application to back up.
239243

240244
. Create the `Backup` CR by running the following command:
241245
+

modules/oadp-usecase-restore.adoc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,25 @@ Restore a backup of an application by using {oadp-short} to a new target namespa
1818

1919
. Create a restore CR as shown in the following example:
2020
+
21-
.Example restore CR
2221
[source,yaml]
2322
----
2423
apiVersion: velero.io/v1
2524
kind: Restore
2625
metadata:
27-
name: test-restore # <1>
26+
name: test-restore
2827
namespace: openshift-adp
2928
spec:
30-
backupName: <backup_name> # <2>
29+
backupName: <backup_name>
3130
restorePVs: true
3231
namespaceMapping:
33-
<application_namespace>: test-restore-application # <3>
32+
<application_namespace>: test-restore-application
3433
----
35-
<1> The name of the restore CR.
36-
<2> Specify the name of the backup.
37-
<3> `namespaceMapping` maps the source application namespace to the target application namespace. Specify the application namespace that you backed up. `test-restore-application` is the target namespace where you want to restore the backup.
34+
+
35+
where:
36+
+
37+
`test-restore`:: Specifies the name of the restore CR.
38+
`<backup_name>`:: Specifies the name of the backup.
39+
`<application_namespace>`:: Specifies the target namespace to restore to. `namespaceMapping` maps the source application namespace to the target application namespace. `test-restore-application` is the name of target namespace where you want to restore the backup.
3840

3941
. Apply the restore CR by running the following command:
4042
+
@@ -67,7 +69,6 @@ $ oc get pvc,svc,deployment,secret,configmap
6769
----
6870
+
6971
.Example output
70-
+
7172
[source,terminal]
7273
----
7374
NAME STATUS VOLUME

modules/oadp-using-legacy-aws-plugin.adoc

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Depending on the backup storage location you choose, you can use either the `leg
2525

2626
. Configure the `DataProtectionApplication` CR to use the `legacy-aws` Velero plugin as shown in the following example:
2727
+
28-
.Example `DataProtectionApplication` CR
2928
[source,yaml]
3029
----
3130
apiVersion: oadp.openshift.io/v1alpha1
@@ -40,16 +39,16 @@ spec:
4039
uploaderType: kopia
4140
velero:
4241
defaultPlugins:
43-
- legacy-aws # <1>
42+
- legacy-aws
4443
- openshift
4544
- csi
46-
defaultSnapshotMoveData: true
45+
defaultSnapshotMoveData: true
4746
backupLocations:
4847
- velero:
4948
config:
5049
profile: "default"
5150
region: noobaa
52-
s3Url: https://s3.openshift-storage.svc
51+
s3Url: https://s3.openshift-storage.svc
5352
s3ForcePathStyle: "true"
5453
insecureSkipTLSVerify: "true"
5554
provider: aws
@@ -58,11 +57,14 @@ spec:
5857
key: cloud
5958
name: cloud-credentials
6059
objectStorage:
61-
bucket: <bucket_name> # <2>
60+
bucket: <bucket_name>
6261
prefix: oadp
6362
----
64-
<1> Use the `legacy-aws` plugin.
65-
<2> Specify the bucket name.
63+
+
64+
where:
65+
+
66+
`legacy-aws`:: Specifies to use the `legacy-aws` plugin.
67+
`<bucket_name>`:: Specifies the bucket name.
6668

6769
. Create the `DataProtectionApplication` CR by running the following command:
6870
+
@@ -79,7 +81,6 @@ $ oc get dpa -o yaml
7981
----
8082
+
8183
.Example output
82-
+
8384
[source,yaml]
8485
----
8586
apiVersion: v1
@@ -110,10 +111,11 @@ metadata:
110111
+
111112
[source,terminal]
112113
----
113-
$ oc get backupstoragelocations.velero.io -n openshift-adp
114+
$ oc get backupstoragelocations.velero.io -n openshift-adp
114115
----
115116
+
116-
.Example output
117+
You should see an output similar to the following example:
118+
+
117119
[source,terminal]
118120
----
119121
NAME PHASE LAST VALIDATED AGE DEFAULT
@@ -122,7 +124,6 @@ dpa-sample-1 Available 3s 15s true
122124

123125
. Configure a `Backup` CR as shown in the following example:
124126
+
125-
.Example backup CR
126127
[source,yaml]
127128
----
128129
apiVersion: velero.io/v1
@@ -132,9 +133,12 @@ metadata:
132133
namespace: openshift-adp
133134
spec:
134135
includedNamespaces:
135-
- <application_namespace> # <1>
136+
- <application_namespace>
136137
----
137-
<1> Specify the namespace for the application to back up.
138+
+
139+
where:
140+
+
141+
`<application_namespace>`:: Specifies the namespace for the application to back up.
138142

139143
. Create the `Backup` CR by running the following command:
140144
+
@@ -149,7 +153,7 @@ $ oc apply -f <backup_cr_filename>
149153
+
150154
[source,terminal]
151155
----
152-
$ oc describe backups.velero.io test-backup -n openshift-adp
156+
$ oc describe backups.velero.io test-backup -n openshift-adp
153157
----
154158
+
155159
.Example output

0 commit comments

Comments
 (0)