關於aliyun託管k8s的存儲插件主要有兩種:html
# kubectl get pod -n kube-system | grep csi-plugin csi-plugin-8bbnw 9/9 Running 0 26h csi-plugin-fszg9 9/9 Running 0 26h
# kubectl get pod -n kube-system | grep flexvolume flexvolume-5fw55 1/1 Running 4 288d flexvolume-992jr 1/1 Running 3 288d flexvolume-f8thl 1/1 Running 15 320d flexvolume-jfzhc 1/1 Running 0 6d3h flexvolume-zjm67 1/1 Running 3 152d
詳細請看:https://help.aliyun.com/document_detail/157026.html?spm=a2c4g.11186623.6.787.18e320dbvg3zQT網絡
https://help.aliyun.com/document_detail/144398.htmlflex
注意:NAS的掛載點要和K8S集羣在同一專有網絡下阿里雲
https://www.yuque.com/docs/share/dcb99888-a491-4802-b321-184bf482f672?# 《在kubernetes集羣動態使用nas持久卷》插件
這篇文章要詳細的使用案例code
在爲阿里雲k8s作存儲前必定要看清楚使用的是那種存儲插件,否則會出現一下問題:htm
pod一直處於ContainerCreating describe查看是由於掛載失敗了,大體以下: Warning FailedMount 6m19s (x2 over 13m) kubelet, cn-shenzhen.172.16.0.123 Unable to attach or mount volumes: unmounted volumes=[alicloud-nas], unattached volumes=[default-token-tk4g4 alicloud-nas]: timed out waiting for the conditionblog