Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Ansible AWX Backup and Restore on Kubernetes: A Practical Disaster Recovery Guide

说明与用途

在 Kubernetes 上备份和恢复 Ansible AWX 的指南,说明如何创建 AWXBackup、使用外部 PVC 存储以及将备份副本复制到集群外部。

问题

Ensuring reliable backup and recovery of an Ansible AWX deployment on Kubernetes without relying on the original cluster nodes.

结果

The guide provides a repeatable, cluster‑independent backup strategy for AWX, ensuring that database, secrets, and configuration can be restored even if the original Kubernetes nodes are lost.

工作流

  • 1. Prepare an external PVC for backup storage using a suitable StorageClass.
  • 2. Create an AWXBackup manifest specifying the AWX custom resource name and backup PVC.
  • 3. Apply the manifest with kubectl apply -f awx-backup.yaml and monitor the resource status.
  • 4. Verify completion via kubectl get awxbackup -n awx and kubectl describe awxbackup.
  • 5. Retrieve backup PVC name and directory from the AWXBackup status using jsonpath queries.
  • 6. Copy the backup archive from the PVC to external storage (e.g., object storage).
  • 7. Secure the copy with encryption and apply retention policies.

证据

The AWX Operator 2.19.1 backup role documents these components: 1) Custom deployment-specific values from the AWX custom resource. 2) PostgreSQL database backup. 3) AWX secret key. 4) Administrator password secret. 5) Broadcast WebSocket secret. 6) Database configuration.

来源

I would not consider the recovery plan complete if the only copy of the backup remains on the same Kubernetes cluster.

来源

Create a file named awx-backup.yaml…

来源

  • 记录日期: 2026-11-03T16:14:11.666Z