Menu Close
8.2.4. 恢复 3scale
要恢复之前通过 APIManager Backup 自定义资源备份的 APIManager
的 3scale 安装,请按照以下步骤执行:
- 确保您要执行恢复的项目不包含 APIManager 自定义资源及其对应的 3scale 安装。
恢复以下 Kubernetes secret:
-
backend-redis
-
system-redis
-
system-database
-
创建
APIManagerRestore
自定义资源,并指定之前由APIManagerBackup
自定义资源备份的安装的备份数据。详情请参阅 备份场景范围。
以下是
APIManagerRestore
自定义资源的示例:apiVersion: apps.3scale.net/v1alpha1 kind: APIManagerRestore metadata: name: example-apimanagerrestore-pvc spec: restoreSource: persistentVolumeClaim: claimSource: claimName: example-apimanagerbackup-pvc # Name of the PVC produced as the backup result of an `APIManagerBackup` readOnly: true
等待
APIManagerRestore
完成。通过获取APIManagerRestore
的内容并等待.status.completed
字段设置为 true 进行检查。您应该会看到创建了一个新的 APIManager 自定义资源并部署 3scale 安装。