본 한국어 번역은 사용자 편의를 위해 제공되는 기계 번역입니다. 영어 버전과 한국어 버전이 서로 어긋나는 경우에는 언제나 영어 버전이 우선합니다.
Red Hat OpenShift 가상화 재해 복구를 위한 타겟 클러스터 설정
이 섹션에서는 NetApp Trident Protect 및 AppMirror를 사용하여 OpenShift Virtualization 워크로드의 재해 복구를 위한 타겟 클러스터를 설정하는 방법에 대한 정보를 제공합니다. 여기에는 ONTAP S3를 사용하여 AppVault를 생성하고 타겟 VM을 위한 새 네임스페이스를 생성하는 작업이 포함됩니다. 이러한 단계는 타겟 클러스터가 소스 클러스터로부터 복제된 데이터를 수신하도록 올바르게 구성되고 재해 발생 시 VM 복구를 가능하게 하는 데 필수적입니다.
-
타겟 클러스터에 AppVault 객체를 생성합니다. 이 객체는 소스 클러스터와 동일한 S3를 가리켜야 소스 클러스터가 저장한 S3에서 스냅샷을 가져올 수 있습니다.
예를 보여주세요
apiVersion: v1 # You can provide the keys either as stringData or base 64 encoded data stringData: accessKeyID: "<access key id as obtained from ONTAP>" secretAccessKey: "<secret access key as obtained from ONTAP>" #data: #accessKeyID: <base 64 encoded value of access key> #secretAccessKey: <base 64 encoded value of secret access key> kind: Secret metadata: name: appvault-secret namespace: trident-protect type: OpaqueapiVersion: protect.trident.netapp.io/v1 kind: AppVault metadata: name: ontap-s3-appvault namespace: trident-protect spec: providerConfig: s3: bucketName: oc-dr endpoint: <data lif to use to access S3> secure: "false" # Setting this to "false" will disable TLS, which is not recommended for production skipCertValidation: "true" # When TLS is enabled, setting skipCertValidation to "true" will skip TLS certificate validation, which is not recommended for production environments. providerCredentials: accessKeyID: valueFromSecret: key: accessKeyID name: appvault-secret secretAccessKey: valueFromSecret: key: secretAccessKey name: appvault-secret providerType: OntapS3oc create -f app-vault-secret.yaml -n trident-protect oc create -f app-vault.yaml -n trident-protect
-
장애 조치된 VM을 호스팅할 새 네임스페이스를 타겟 클러스터에 생성합니다. 1단계에서 생성한 AppVault와 새 네임스페이스를 참조하는 앱을 타겟 클러스터에 생성합니다. 이 앱은 소스 클러스터와 타겟 클러스터 간의 AppMirror 관계를 설정하고 소스 클러스터에서 타겟 클러스터로의 데이터 복제를 관리하는 데 사용됩니다.
예를 보여주세요
# cat app.yaml apiVersion: protect.trident.netapp.io/v1 kind: Application metadata: creationTimestamp: null name: test-dest-app namespace: test-dr-ns-dest spec: includedNamespaces: - namespace: test-dr-ns-desttridentctl-protect create app <dest-app-name> -n <dest-ns> --namespaces <dest-ns>