跳转到主内容

如何将同一个 Trident 创建的 PVC 附加到多个 K8s 集群

Views:
14
Visibility:
Public
Votes:
0
Category:
astra_trident
Specialty:
snapx
Last Updated:

适用场景

  • Astra三端
  • Kubnetes (K8s)
    • 永久性卷(PV)
    • 永久性卷请求(PVC)

问题描述

此 过程可以用于对驻留在多个K8s集群中的Pod之间共享的非结构化数据进行持续的读写多(Read-Write-M众多、RWM)访问、也可以用于在K8s集群之间逐步移动应用程序、同时在整个应用程序迁移过程中保持对非结构化数据的访问。

要求
  • 请勿在三端定义中使用"autoExportPolicy"和"autoExport"CRs"。  在涵盖两个K8s集群中的工作节点的后端定义中使用"exportPolicy"、并手动管理此导出策略列表中的NFS客户端(或使用子网级导出)。
  • 在将在K8s集群之间共享卷的存储类中设置"relaimPolicy:retain "。  这意味着、您必须在准备好删除K8s PIV和存储卷时手动将其删除。  
  • 对于在K8s集群之间共享卷的存储类、请考虑在后端使用唯一的"storagePrefix"、并将存储类映射到后端。  对于使用同一SVM且在K8s集群之间*不*共享卷的任何后端、请考虑执行同样的操作。

 

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.