第 2 章 创建 Red Hat Ansible Automation Platform 备份资源
备份 Red Hat Ansible Automation Platform 部署涉及为部署的实例创建备份资源。使用以下步骤为您的 Red Hat Ansible Automation Platform 部署创建备份资源。我们建议在升级 Ansible Automation Platform Operator 前进行备份。如果您要将平台恢复到以前的状态,请定期进行备份。
2.1. 备份 Automation 控制器部署 复制链接链接已复制到粘贴板!
使用这个流程备份控制器的部署,包括作业、清单和凭证。
先决条件
- 您必须使用 OpenShift 集群进行身份验证。
- 在集群中安装了 Ansible Automation Platform Operator。
- 已使用 Ansible Automation Platform Operator 部署自动化控制器。
流程
- 登录到 Red Hat OpenShift Container Platform。
-
进入到
。 - 选择 Ansible Automation Platform Operator 部署。
- 选择 Automation Controller Backup 选项卡。
- 点 。
- 输入备份的名称。
- 在 Deployment name 字段中,输入正在备份部署的 Ansible Automation Platform 实例的 AutomationController 自定义资源对象的名称。创建 AutomationController 对象时会创建 此名称。
如果要使用自定义、预先创建的 pvc:
- (可选)输入备份持久性卷声明的名称。
(可选)输入 Backup PVC 存储要求,以及 Backup PVC 存储类。
注意如果没有提供 pvc 或存储类,集群的默认存储类将用于创建 pvc。
如果您有大型数据库,根据备份管理 pod 资源要求中的内容指定您的存储请求。
注意您可以在 postgres pod 中运行以下命令来检查现有 postgres 数据库数据目录的大小。
$ df -h | grep "/var/lib/pgsql/data"
点 。
创建指定部署的备份 tarball,并可用于数据恢复或部署回滚。将来的备份存储在同一 pvc 上的单独 tar 文件中。
验证
- 登录到 Red Hat OpenShift Container Platform
-
进入到
。 - 选择 Ansible Automation Platform Operator。
- 选择 AutomationControllerBackup 选项卡。
- 选择您要验证的备份资源。
滚动到 Conditions,并检查 Successful 状态为
True。注意如果状态为
Failure,则备份失败。检查自动化控制器 Operator 日志中的错误以修复问题。