题目
Task
Create a new PersistentVolumeClaim:
- Name:pv-volume
- Class:csi-hostpath-sc
- Capacity:10Mi
Create a new pod which mounts the PersistentVolumeClaim:
- Name:web-server
- Image:nginx
- Mount Path:/usr/share/nginx/html
Configure the new Pod to have ReadWriteOnce access on the volume
Finally,using kubectl edit or kubectl patch expand the PersistentVolumeClaim to a capacity of 70 Mi and record that change.
答案
官网:
Kubernetes 文档/任务/配置 Pods 和容器/配置 Pod 以使用 PersistentVolume 作为存储: