Operator 환경에 대한 백업 및 복구


Red Hat Ansible Automation Platform 2.5

OpenShift Container Platform에서 Ansible Automation Platform Operator의 백업 및 복구로 데이터 손실 방지

Red Hat Customer Content Services

초록

이 가이드에서는 OpenShift Container Platform의 Red Hat Ansible Automation Platform Operator의 백업 및 복구를 위한 절차 및 참조 정보를 제공합니다.

머리말

Red Hat Ansible Automation Platform에 관심을 가져 주셔서 감사합니다. Ansible Automation Platform은 Ansible 기반 환경에 제어, 지식, 위임을 추가하여 팀이 복잡한 다중 계층 배포를 관리하는 데 도움이 되는 상용 서비스입니다.

이 가이드의 절차를 사용하여 오류가 발생할 경우 Red Hat Ansible Automation Platform 배포를 복구하는 데 사용할 수 있는 백업 리소스를 생성합니다.

Red Hat 문서에 관한 피드백 제공

이 문서를 개선하기 위한 제안이 있거나 오류를 찾을 수 있는 경우 https://access.redhat.com 에서 기술 지원에 문의하여 요청을 열 수 있습니다.

1장. Red Hat Ansible Automation Platform의 백업 및 복구

예기치 않은 데이터 손실 및 애플리케이션 오류를 방지하려면 Red Hat Ansible Automation Platform 배포를 정기적으로 백업해야 합니다. 데이터 손실 방지 외에도 백업을 사용하여 다른 배포 상태로 대체할 수 있습니다.

1.1. 백업 및 복구 정보

Red Hat은 데이터 손실을 방지하기 위해 Red Hat OpenShift Container Platform 환경에서 Red Hat Ansible Automation Platform 배포를 백업할 것을 권장합니다.

Red Hat Ansible Automation Platform 배포의 백업 리소스에는 다음이 포함됩니다.

  • Ansible Automation Platform 사용자 정의 리소스 오브젝트의 spec 섹션에 있는 특정 값의 사용자 정의 배포
  • postgresql 데이터베이스를 백업합니다.
  • SECRET_KEY,admin_password, broadcast_websocket 시크릿.
  • 데이터베이스 구성.
참고

중요한 정보를 포함할 수 있으므로 백업 리소스를 보호하십시오.

1.1.1. 백업 권장 사항

데이터 손실에서 복구하려면 정기적으로 Red Hat Ansible Automation Platform 배포의 백업 리소스를 계획하고 생성해야 합니다. 최소한 Red Hat은 다음과 같은 상황에서 Red Hat Ansible Automation Platform 배포를 백업할 것을 권장합니다.

  • Red Hat Ansible Automation Platform 배포를 업그레이드하기 전에
  • OpenShift 클러스터를 업그레이드하기 전에
  • 일주일에 한 번. 이는 환경이 자동 업그레이드용으로 구성된 경우 특히 중요합니다.

2장. Red Hat Ansible Automation Platform 백업 리소스 생성

Red Hat Ansible Automation Platform 배포를 백업하려면 배포된 인스턴스에 대한 백업 리소스를 생성해야 합니다. Red Hat Ansible Automation Platform 배포를 위한 백업 리소스를 생성하려면 다음 절차를 사용하십시오. Ansible Automation Platform Operator를 업그레이드하기 전에 백업을 수행하는 것이 좋습니다. 플랫폼을 이전 상태로 복원하려는 경우 정기적으로 백업을 사용하십시오.

2.1. Ansible Automation Platform 배포 백업

Ansible Automation Platform 배포를 정기적으로 백업하는 것은 예기치 않은 데이터 손실 및 애플리케이션 오류로부터 보호하는 데 중요합니다. Ansible Automation Platform 은 Ansible Automation Platform을 백업할 때 자동화 컨트롤러, 자동화 허브 및 이벤트 기반 Ansible과 같은 활성화된 구성 요소(예: 자동화 컨트롤러, 자동화 허브, 이벤트 기반 Ansible)를 호스팅합니다.

사전 요구 사항

  • OpenShift 클러스터에서 인증해야 합니다.
  • 클러스터에 Ansible Automation Platform Operator가 설치되어 있습니다.
  • Ansible Automation Platform Operator를 사용하여 Ansible Automation Platform 인스턴스를 배포했습니다.

프로세스

  1. Red Hat OpenShift Container Platform에 로그인합니다.
  2. Operators(운영자) InstalledOperators 로 이동합니다.
  3. Ansible Automation Platform Operator 배포를 선택합니다.
  4. 모든 인스턴스 탭으로 이동하여 Create New 를 클릭합니다.
  5. 목록에서 Ansible Automation Platform Backup 을 선택합니다.

    참고

    Ansible Automation Platform Backup 리소스를 생성할 때 활성화된 각 중첩된 구성 요소에 대한 백업 리소스도 생성합니다.

  6. 이름 필드에 백업의 이름을 입력합니다.
  7. 배포 이름 필드에 백업 중인 배포된 Ansible Automation Platform 인스턴스의 이름을 입력합니다. 예를 들어 Ansible Automation Platform 배포를 백업해야 하고 배포 이름이 aap인 경우 Deployment name 필드에 'aap'을 입력합니다.
  8. 생성을 클릭합니다.

그러면 AnsibleAutomationPlatformBackup 리소스가 생성됩니다. 리소스 YAML은 다음과 유사합니다.

apiVersion: aap.ansible.com/v1alpha1
kind: AnsibleAutomationPlatformBackup
metadata:
  name: backup
  namespace: aap
spec:
  no_log: true
  deployment_name: aap
Copy to clipboard
참고

Ansible Automation Platform Operator는 Ansible Automation Platform Backup을 위한 PVC(PersistentVolumeClaim)를 자동으로 생성합니다. backup_pvc 사양을 사용하고 PVC를 지정하여 미리 생성된 PVC를 사용할 수 있습니다.

검증

백업에 성공했는지 확인하려면 다음을 수행할 수 있습니다.

  1. Red Hat OpenShift Container Platform에 로그인합니다.
  2. Operators(운영자) InstalledOperators 로 이동합니다.
  3. Ansible Automation Platform Operator 배포를 선택합니다.
  4. 모든 인스턴스를 클릭합니다.

모든 인스턴스 페이지에는 백업 리소스를 생성할 때 지정한 이름으로 각 구성 요소의 기본 백업 및 백업이 표시됩니다. 다음 인스턴스의 상태는 Running 또는 Successful 여야 합니다.

  • AnsibleAutomationPlatformBackup
  • AutomationControllerBackup
  • EDABackup
  • AutomationHubBackup

3장. Red Hat Ansible Automation Platform 배포 복구

시스템에 대한 정보가 손실되거나 업그레이드에 문제가 있는 경우 배포 인스턴스의 백업 리소스를 사용할 수 있습니다. 다음 절차에 따라 Ansible Automation Platform 배포 파일을 복구하십시오.

3.1. Ansible Automation Platform 배포 복구

Ansible Automation Platform 은 Ansible Automation Platform을 복구할 때 자동화 컨트롤러, 자동화 허브, 이벤트 기반 Ansible과 같은 모든 구성 요소(예: 자동화 컨트롤러, 자동화 허브, 이벤트 기반 Ansible)를 관리합니다.

이전 버전의 Ansible Automation Platform Operator에서는 플랫폼의 각 구성 요소에 대한 복원 오브젝트를 생성해야 했습니다. 이제 다른 복원 오브젝트를 생성하고 관리하는 단일 AnsibleAutomationPlatformRestore 리소스를 생성합니다.

  • AutomationControllerRestore
  • AutomationHubRestore
  • EDARestore

사전 요구 사항

  • OpenShift 클러스터에서 인증해야 합니다.
  • 클러스터에 Ansible Automation Platform Operator가 설치되어 있습니다.
  • AnsibleAutomationPlatformBackups 배포는 클러스터에서 사용할 수 있습니다.

프로세스

  1. Red Hat OpenShift Container Platform에 로그인합니다.
  2. Operators(운영자) InstalledOperators 로 이동합니다.
  3. Ansible Automation Platform Operator 배포를 선택합니다.
  4. 모든 인스턴스 탭으로 이동하여 Create New 를 클릭합니다.
  5. 목록에서 Ansible Automation Platform 복원을 선택합니다.
  6. Name 은 복구 배포의 이름을 입력합니다.
  7. New Ansible Automation Platform Name 은 Ansible Automation Platform 인스턴스의 새 이름을 입력합니다.
  8. Backup Source 는 기본적으로 CR 입니다.
  9. 백업 이름의 경우 백업을 생성할 때 선택한 이름을 입력합니다.
  10. 생성을 클릭합니다.

백업은 AnsibleAutomationPlatformRestores 탭에서 복원하기 시작합니다.

참고

모든 리소스가 성공적으로 복원될 때까지 복구가 완료되지 않습니다. 데이터베이스 크기에 따라 다소 시간이 걸릴 수 있습니다.

검증

복구에 성공했는지 확인하려면 다음을 수행할 수 있습니다.

  1. 워크로드포드 로 이동합니다.
  2. 모든 Pod가 Running 또는 Completed 상태인지 확인합니다.

4장. 문제 해결

이 정보를 사용하여 백업 및 복구 중에 문제를 진단하고 해결합니다.

4.1. 자동화 컨트롤러 사용자 정의 리소스에는 기존 배포와 동일한 이름이 있습니다.

새 AutomationController 사용자 지정 리소스에 지정된 이름이 기존 배포와 일치하지 않아야 합니다. 그렇지 않으면 복구 프로세스가 실패합니다.

AutomationController 고객 리소스가 기존 배포와 일치하는 경우 다음 단계를 수행하여 문제를 해결합니다.

프로세스

  1. 기존 AutomationController 및 관련 postgres PVC를 삭제합니다.

    oc delete automationcontroller <YOUR_DEPLOYMENT_NAME> -n <YOUR_NAMESPACE>
    
    oc delete pvc postgres-13-<YOUR_DEPLOYMENT_NAME>-13-0 -n <YOUR_NAMESPACE>
    Copy to clipboard
  2. 동일한 deployment_name으로 AutomationControllerRestore를 사용합니다.

    oc apply -f restore.yaml
    Copy to clipboard

법적 공지

Copyright © 2025 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat, Inc.