您可以从其他地区在AKS Kubernetes群集上装载NetApp卷吗



我正在使用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

不幸的是,恐怕您无法实现它。在针对AKS的Azure NetApp文件的限制中,它在这里写道:

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

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

最新更新