能否从其他区域将NetApp卷挂载到AKS Kubernetes群集上?

问题描述 投票:0回答:1

我正在使用Azure NetApp文件和AKS。假设我在一个区域中拥有一个NetApp帐户以及一个NetApp池,并且我想在另一个区域中的k8s集群中的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个回答
2
投票

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

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

[您知道,用于AKS的虚拟网络应该与AKS处于同一区域,然后才可以使用。因此,您不能将Azure NetApp文件安装在AKS以外的其他区域。

© www.soinside.com 2019 - 2024. All rights reserved.