我从这里尝试了简单的 PVC 示例,其中 nginx 声称 azure-managed-disk 并且出现“无法安装”错误,见下文。此外,我无法使用“ kubectl delete pv pvc-3f3c3c78-9779-11e9-a7eb-1aafd0e2f988 ”删除创建的 PV。
$kubectl get events
LAST SEEN TYPE REASON KIND MESSAGE
10m Warning FailedMount Pod MountVolume.WaitForAttach failed for volume "pvc-3f3c3c78-9779-11e9-a7eb-1aafd0e2f988" : azureDisk - WaitForAttach failed within timeout node (aks-agentpool-10844952-2) diskId:(kubernetes-dynamic-pvc-3f3c3c78-9779-11e9-a7eb-1aafd0e2f988) lun:(1)
22s Warning FailedMount Pod Unable to mount volumes for pod "nginx_default(bd16b9c8-97b2-11e9-9018-eaa2ea1705c5)": timeout expired waiting for volumes to attach or mount for pod "default"/"nginx". list of unmounted volumes=[volume]. list of unattached volumes=[volume default-token-92rj6]
我的托管 aks 集群正在使用 v1.12.8 ,SP 具有贡献者角色(所有者角色也无济于事)。在我的简单 nginx 示例(提供的链接)的 yaml 中有存储类 'managed-premium' 。