*https://github.com/kubernetes/examples/tree/master/staging/volumes/nfs
[https://baremetal.jp/blog/2018/04/17/541/ NFS]
<pre>
apiVersion: v1
kind: PersistentVolume
metadata:
name: web-pv
labels:
type: local
spec:
capacity:
storage: 5Gi
accessModes:
- ReadWriteMany
nfs:
server: bombaay.local
path: "/var/nfs/general"
</pre>
<pre>
$ kubectl describe pv
Name: web-pv
Labels: type=local
Annotations: <none>
Finalizers: [kubernetes.io/pv-protection]
StorageClass:
Status: Available
Claim:
Reclaim Policy: Retain
Access Modes: RWX
VolumeMode: Filesystem
Capacity: 5Gi
Node Affinity: <none>
Message:
Source:
Type: NFS (an NFS mount that lasts the lifetime of a pod)
Server: bombaay.local
Path: /var/nfs/general
ReadOnly: false
Events: <none>
</pre>
==デプロイ==