在Kubernetes(Azure AKS)中,如何创建绑定到我自己的托管磁盘Azure资源的PersistentVolume
资源,该资源具有特定的diskName
和diskURI
(资源ID) ?
这里是一个示例,但对于Pod:
kind: Pod
apiVersion: v1
metadata:
name: mypodrestored
spec:
containers:
- name: myfrontendrestored
image: nginx
volumeMounts:
- mountPath: "/mnt/azure"
name: volume
volumes:
- name: volume
azureDisk:
kind: Managed
diskName: pvcRestored
diskURI: /subscriptions/<guid>/resourceGroups/MC_myResourceGroupAKS_myAKSCluster_eastus/providers/Microsoft.Compute/disks/pvcRestored
答案 0 :(得分:0)