Skip to content

Commit a3de032

Browse files
authored
Merge pull request #89068 from apurvabhide17/OADP-5634-improving-threescale-user-story
OADP-5634: Add new structure for 3scale user story
2 parents 06bf057 + 074c28a commit a3de032

14 files changed

+404
-215
lines changed

_topic_maps/_topic_map.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3696,8 +3696,12 @@ Topics:
36963696
- Name: OADP and 3scale
36973697
Dir: oadp-3scale
36983698
Topics:
3699-
- Name: Backing up and restoring 3scale by using OADP
3700-
File: backing-up-and-restoring-3scale-by-using-oadp
3699+
- Name: Backing up and restoring 3scale API Management by using OADP
3700+
File: backing-up-and-restoring-3scale-api-management-by-using-oadp
3701+
- Name: Backing up 3scale API Management by using OADP
3702+
File: backing-up-3scale-api-management-by-using-oadp
3703+
- Name: Restoring 3scale API Management by using OADP
3704+
File: restoring-3scale-api-management-by-using-oadp
37013705
- Name: OADP Data Mover
37023706
Dir: installing
37033707
Topics:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
[id="backing-up-3scale-api-management-by-using-oadp"]
3+
= Backing up 3scale API Management by using OADP
4+
include::_attributes/common-attributes.adoc[]
5+
:context: backing-up-3scale-api-management-by-using-oadp
6+
:3scaleProductVersion: 2.15
7+
:3scaleDocInfoProductName: red_hat_3scale_api_management
8+
:Link3scaleInstalling3scale: https://docs.redhat.com/en/documentation/{3scaleDocInfoProductName}/{3scaleProductVersion}/html-single/installing_red_hat_3scale_api_management/index
9+
10+
toc::[]
11+
12+
You can back up Red{nbsp}Hat 3scale API Management components by backing up the 3scale operator, and databases such as MySQL and Redis.
13+
14+
.Prerequisites
15+
16+
* You installed and configured Red{nbsp}Hat 3scale API Management. For more information, see link:{Link3scaleInstalling3scale}#install-threescale-on-openshift-guide[Installing 3scale API Management on OpenShift] and link:https://docs.redhat.com/en/documentation/red_hat_3scale_api_management[Red Hat 3scale API Management].
17+
18+
include::modules/creating-the-data-protection-application.adoc[leveloffset=+1]
19+
[role="_additional-resources"]
20+
.Additional resources
21+
* xref:../../../backup_and_restore/application_backup_and_restore/installing/installing-oadp-aws.adoc#oadp-installing-dpa_installing-oadp-aws[Installing the Data Protection Application]
22+
23+
include::modules/backing-up-the-3scale-operator-secret-apimanager.adoc[leveloffset=+1]
24+
25+
[role="_additional-resources"]
26+
.Additional resources
27+
* xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-creating-backup-cr.adoc#oadp-creating-backup-cr-doc[Creating a Backup CR]
28+
29+
include::modules/backing-up-the-mysql-database.adoc[leveloffset=+1]
30+
31+
include::modules/backing-up-the-backend-redis-database.adoc[leveloffset=+1]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
[id="backing-up-and-restoring-3scale-api-management-by-using-oadp"]
3+
= Backing up and restoring 3scale API Management by using OADP
4+
include::_attributes/common-attributes.adoc[]
5+
:context: backing-up-and-restoring-3scale-api-management-by-using-oadp
6+
7+
toc::[]
8+
9+
With Red{nbsp}Hat 3scale API Management, you can manage your APIs for internal or external users.
10+
You can deploy 3scale components on-premise, in the cloud, as a managed service, or in any combination based on your requirements.
11+
12+
With {oadp-first}, you can safeguard 3scale API Management deployments by backing up application resources, persistent volumes, and configurations.
13+
14+
[NOTE]
15+
====
16+
You can use the {oadp-first} Operator to back up and restore your 3scale API Management on-cluster storage databases without affecting your running services
17+
====
18+
19+
You can configure OADP to perform the following operations with 3scale API Management:
20+
21+
* Create a backup of 3scale components by following the steps in xref:../../../backup_and_restore/application_backup_and_restore/oadp-3scale/backing-up-3scale-api-management-by-using-oadp.adoc#backing-up-3scale-api-management-by-using-oadp[Backing up 3scale API Management].
22+
* Restore the components to scale up the 3scale operator and deployment by following the steps in xref:../../../backup_and_restore/application_backup_and_restore/oadp-3scale/restoring-3scale-api-management-by-using-oadp.adoc#restoring-3scale-api-management-by-using-oadp[Restoring 3scale API Management].
23+
24+
25+
26+
27+

backup_and_restore/application_backup_and_restore/oadp-3scale/backing-up-and-restoring-3scale-by-using-oadp.adoc

Lines changed: 0 additions & 43 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
[id="restoring-3scale-api-management-by-using-oadp"]
3+
= Restoring 3scale API Management by using OADP
4+
include::_attributes/common-attributes.adoc[]
5+
:context: restoring-3scale-api-management-by-using-oadp
6+
:3scaleProductVersion: 2.15
7+
:3scaleDocInfoProductName: red_hat_3scale_api_management
8+
:Link3scaleInstalling3scale: https://docs.redhat.com/en/documentation/{3scaleDocInfoProductName}/{3scaleProductVersion}/html-single/installing_red_hat_3scale_api_management/index
9+
10+
toc::[]
11+
12+
You can restore Red{nbsp}Hat 3scale API Management components by restoring the backed up 3scale operator resources. You can also restore databases such as MySQL and Redis.
13+
14+
After the data has been restored, you can scale up the 3scale operator and deployment.
15+
16+
.Prerequisites
17+
18+
* You installed and configured Red{nbsp}Hat 3scale API Management. For more information, see link:{Link3scaleInstalling3scale}#install-threescale-on-openshift-guide[Installing 3scale API Management on OpenShift] and link:https://docs.redhat.com/en/documentation/red_hat_3scale_api_management[Red Hat 3scale API Management].
19+
20+
* You backed up the 3scale operator, and databases such as MySQL and Redis.
21+
22+
* Ensure that you are restoring 3scale on the same cluster where it was backed up from.
23+
24+
* If you want to restore 3scale on a different cluster, ensure that the original backed-up cluster and the cluster you want to restore the operator on are using the same custom domain.
25+
26+
include::modules/restoring-the-3scale-api-management-operator-secrets-and-apimanager.adoc[leveloffset=+1]
27+
28+
include::modules/restoring-the-mysql-database.adoc[leveloffset=+1]
29+
30+
include::modules/restoring-the-backend-redis-database.adoc[leveloffset=+1]
31+
32+
include::modules/scaling-up-the-3scale-api-management-operator-and-deployment.adoc[leveloffset=+1]

modules/backing-up-the-3scale-operator.adoc renamed to modules/backing-up-the-3scale-operator-secret-apimanager.adoc

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
:_mod-docs-content-type: PROCEDURE
22

3-
//included in backing-up-and-restoring-3scale-by-using-oadp.adoc assembly
3+
//included in backing-up-3scale-api-management-by-using-oadp.adoc assembly
44

5-
[id="backing-up-the-3scale-operator_{context}"]
6-
= Backing up the 3scale Operator
5+
[id="backing-up-the-3scale-operator-secret-apimanager_{context}"]
6+
= Backing up the 3scale API Management operator, secret, and APIManager
77

8-
You can back up the Operator resources, and Secret and APIManager custom resources (CR). For more information, see "Creating a Backup CR".
8+
You can back up the Red{nbsp}Hat 3scale API Management operator resources, and both the `Secret` and APIManager custom resource (CR).
99

1010
.Prerequisites
1111

1212
* You created the Data Protection Application (DPA).
1313

1414
.Procedure
1515

16-
. Back up the Operator resources, such as `operatorgroup`, `namespaces`, and `subscriptions`, by creating a YAML file with the following configuration:
16+
. Back up your 3scale operator CRs, such as `operatorgroup`, `namespaces`, and `subscriptions`, by creating a YAML file with the following configuration:
1717
+
1818
.Example `backup.yaml` file
1919
+
@@ -22,13 +22,13 @@ You can back up the Operator resources, and Secret and APIManager custom resourc
2222
apiVersion: velero.io/v1
2323
kind: Backup
2424
metadata:
25-
name: operator-install-backup
25+
name: operator-install-backup <1>
2626
namespace: openshift-adp
2727
spec:
2828
csiSnapshotTimeout: 10m0s
2929
defaultVolumesToFsBackup: false
3030
includedNamespaces:
31-
- threescale <1>
31+
- threescale <2>
3232
includedResources:
3333
- operatorgroups
3434
- subscriptions
@@ -37,7 +37,8 @@ spec:
3737
snapshotMoveData: false
3838
ttl: 720h0m0s
3939
----
40-
<1> Namespace where the 3scale Operator is installed.
40+
<1> The value of the `metadata.name` parameter in the backup is the same value used in the `metadata.backupName` parameter used when restoring the 3scale operator.
41+
<2> Namespace where the 3scale operator is installed.
4142
+
4243
[NOTE]
4344
====
@@ -50,8 +51,15 @@ You can also back up and restore `ReplicationControllers`, `Deployment`, and `Po
5051
----
5152
$ oc create -f backup.yaml
5253
----
54+
+
55+
.Example output
56+
+
57+
[source,terminal]
58+
----
59+
backup.velero.io/operator-install-backup created
60+
----
5361

54-
. Back up the Secret CR by creating a YAML file with the following configuration:
62+
. Back up the `Secret` CR by creating a YAML file with the following configuration:
5563
+
5664
.Example `backup-secret.yaml` file
5765
+
@@ -60,7 +68,7 @@ $ oc create -f backup.yaml
6068
apiVersion: velero.io/v1
6169
kind: Backup
6270
metadata:
63-
name: operator-resources-secrets
71+
name: operator-resources-secrets <1>
6472
namespace: openshift-adp
6573
spec:
6674
csiSnapshotTimeout: 10m0s
@@ -77,13 +85,21 @@ spec:
7785
snapshotVolumes: false
7886
ttl: 720h0m0s
7987
----
88+
<1> The value of the `metadata.name` parameter in the backup is the same value used in the `metadata.backupName` parameter used when restoring the `Secret`.
8089

81-
. Create the Secret CR by running the following command:
90+
. Create the `Secret` backup CR by running the following command:
8291
+
8392
[source,terminal]
8493
----
8594
$ oc create -f backup-secret.yaml
8695
----
96+
+
97+
.Example output
98+
+
99+
[source,terminal]
100+
----
101+
backup.velero.io/operator-resources-secrets created
102+
----
87103

88104
. Back up the APIManager CR by creating a YAML file with the following configuration:
89105
+
@@ -93,7 +109,7 @@ $ oc create -f backup-secret.yaml
93109
apiVersion: velero.io/v1
94110
kind: Backup
95111
metadata:
96-
name: operator-resources-apim
112+
name: operator-resources-apim <1>
97113
namespace: openshift-adp
98114
spec:
99115
csiSnapshotTimeout: 10m0s
@@ -110,14 +126,18 @@ spec:
110126
volumeSnapshotLocations:
111127
- ts-dpa-1
112128
----
129+
<1> The value of the `metadata.name` parameter in the backup is the same value used in the `metadata.backupName` parameter used when restoring the APIManager.
113130

114131
. Create the APIManager CR by running the following command:
115132
+
116133
[source,terminal]
117134
----
118135
$ oc create -f backup-apimanager.yaml
119136
----
120-
121-
.Next steps
122-
123-
* Back up the `mysql` database.
137+
+
138+
.Example output
139+
+
140+
[source,terminal]
141+
----
142+
backup.velero.io/operator-resources-apim created
143+
----

modules/backing-up-the-backend-redis-database.adoc

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:_mod-docs-content-type: PROCEDURE
22

3-
//included in backing-up-and-restoring-3scale-by-using-oadp.adoc assembly
3+
//included in backing-up-3scale-api-management-by-using-oadp.adoc assembly
44

55
[id="backing-up-the-backend-redis-database_{context}"]
66
= Backing up the back-end Redis database
@@ -10,8 +10,8 @@ You can back up the Redis database by adding the required annotations and by lis
1010

1111
.Prerequisites
1212

13-
* You backed up the 3scale Operator.
14-
* You backed up the mysql database.
13+
* You backed up the Red{nbsp}Hat 3scale API Management operator.
14+
* You backed up your MySQL database.
1515
* The Redis queues have been drained before performing the backup.
1616

1717

@@ -23,8 +23,6 @@ You can back up the Redis database by adding the required annotations and by lis
2323
----
2424
$ oc edit deployment backend-redis -n threescale
2525
----
26-
27-
. Add the following annotations:
2826
+
2927
[source,yaml]
3028
----
@@ -46,7 +44,7 @@ post.hook.backup.velero.io/command: >-
4644
apiVersion: velero.io/v1
4745
kind: Backup
4846
metadata:
49-
name: redis-backup
47+
name: redis-backup <1>
5048
namespace: openshift-adp
5149
spec:
5250
csiSnapshotTimeout: 10m0s
@@ -69,23 +67,44 @@ spec:
6967
snapshotVolumes: false
7068
ttl: 720h0m0s
7169
----
70+
<1> The value of the `metadata.name` parameter in the backup is the same value used in the `metadata.backupName` parameter used when restoring the restoring the Redis database.
7271

7372
. Back up the Redis database by running the following command:
7473
+
7574
[source,terminal]
7675
----
77-
$ oc get backups.velero.io redis-backup -o yaml
76+
$ oc create -f redis-backup.yaml
77+
----
78+
+
79+
.Example output:
80+
+
81+
[source,terminal]
7882
----
83+
backup.velero.io/redis-backup created
84+
----
85+
7986

8087
.Verification
8188

82-
* Verify that the Redis backup is completed by running the following command::
89+
* Verify that the Redis backup is completed by running the following command:
8390
+
8491
[source,terminal]
8592
----
86-
$ oc get backups.velero.io
93+
$ oc get backups.velero.io redis-backup -o yaml
8794
----
88-
89-
.Next steps
90-
91-
* Restore the Secrets and APIManager CRs.
95+
+
96+
.Example output:
97+
+
98+
[source,terminal]
99+
----
100+
status:
101+
completionTimestamp: "2025-04-17T13:25:19Z"
102+
errors: 1
103+
expiration: "2025-05-17T13:25:16Z"
104+
formatVersion: 1.1.0
105+
hookStatus: {}
106+
phase: Completed
107+
progress: {}
108+
startTimestamp: "2025-04-17T13:25:16Z"
109+
version: 1
110+
----

0 commit comments

Comments
 (0)