【问题标题】:Can you mount a NetApp volume on a AKS Kubernetes Cluster from a different region?能否在不同区域的 AKS Kubernetes 集群上挂载 NetApp 卷?
【发布时间】:2020-04-06 15:17:28
【问题描述】:

我正在使用 Azure NetApp 文件和 AKS。假设我在一个区域有一个 NetApp 帐户和一个 NetApp 池,我想在另一个区域的 k8s 集群中的 pod 上挂载一个卷。那可能吗?到目前为止,我收到一条错误消息,提示 pod 无法挂载卷并且超时。

Unable to mount volumes for pod "x": timeout expired waiting for volumes to attach or mount for pod "x"

我的 PersistentVolume 和 PersistentVolumeClaim yaml 文件如下所示:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: test
  finalizers : null
  labels:
    type: nfs
spec:
  capacity:
    storage: 200Gi
  accessModes:
    - ReadWriteMany
  persistentVolumeReclaimPolicy: Retain
  nfs:
    server: 1.2.3.4
    path: /test-volume
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: test
  namespace: myNamespace
  finalizers: null
spec:
  accessModes:
    - ReadWriteMany
  storageClassName: ""
  resources:
    requests:
      storage: 200Gi
  selector: 
    matchLabels:
      type: nfs

【问题讨论】:

  • 还有关于这个问题的问题吗?或者,如果它适合你,请接受它作为答案。

标签: azure kubernetes azure-virtual-network azure-aks netapp


【解决方案1】:

很遗憾,恐怕您无法实现。在 AKS 的 Azure NetApp 文件的限制中,它说 here:

必须在同一虚拟网络中创建 Azure NetApp 文件服务 作为您的 AKS 群集。

您知道,AKS 的虚拟网络应该与 AKS 在同一区域,然后才能使用。因此,您无法将不同区域中的 Azure NetApp 文件装载到 AKS。

【讨论】:

    猜你喜欢
    • 2022-07-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-08
    • 2019-11-08
    • 1970-01-01
    • 2020-08-07
    • 1970-01-01
    相关资源
    最近更新 更多