标签:meta sed work 允许 let volumes lock 用户 ast
和Volume的区别
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv001
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
nfs:
path: /data/k8s/
server: 172.16.1.131
当前支持的回收策略:
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: myclaim
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 8Gi
Pending – 等待可用的PV
Bound – PV被绑定到PVC
Lost – 找不到绑定的PV
kind: Pod
apiVersion: v1
metadata:
name: mypod
spec:
containers:
- name: myfrontend
image: dockerfile/nginx
volumeMounts:
- mountPath: "/var/www/html"
name: mypd
volumes:
- name: mypd
persistentVolumeClaim:
claimName: myclaim
标签:meta sed work 允许 let volumes lock 用户 ast
原文地址:https://www.cnblogs.com/wangyiyang/p/12194759.html