diff options
| author | k8s-ci-robot <k8s-ci-robot@users.noreply.github.com> | 2018-01-26 11:23:32 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-26 11:23:32 -0800 |
| commit | 81760e4afbe2f016e5facb674fb90c9248cda82e (patch) | |
| tree | e04dc25d76dc7593e99df33032c55c829440d597 | |
| parent | 120ff126b1744bcad71b8389915ef016e5c48926 (diff) | |
| parent | 7805ec02cd17267010bb1a0d52181808a2312920 (diff) | |
Merge pull request #1529 from xuhuilong/patch-5
Update mount-options.md
| -rw-r--r-- | contributors/design-proposals/storage/mount-options.md | 57 |
1 files changed, 30 insertions, 27 deletions
diff --git a/contributors/design-proposals/storage/mount-options.md b/contributors/design-proposals/storage/mount-options.md index f0ab51b1..15b4b77b 100644 --- a/contributors/design-proposals/storage/mount-options.md +++ b/contributors/design-proposals/storage/mount-options.md @@ -18,20 +18,23 @@ Mount time options that are operationally important and have no security implica Mount options can be specified as a field on PVs. For example: ``` yaml - apiVersion: v1 - kind: PersistentVolume - metadata: - name: pv0003 - spec: - capacity: - storage: 5Gi - accessModes: - - ReadWriteOnce - persistentVolumeReclaimPolicy: Recycle - mountOptions: "hard,nolock,nfsvers=3" - nfs: - path: /tmp - server: 172.17.0.2 +apiVersion: v1 +kind: PersistentVolume +metadata: + name: pv0003 +spec: + capacity: + storage: 5Gi + accessModes: + - ReadWriteOnce + persistentVolumeReclaimPolicy: Recycle + mountOptions: + - hard + - nolock + - nfsvers=3 + nfs: + path: /tmp + server: 172.17.0.2 ``` @@ -40,21 +43,21 @@ and deprecated in future. ``` yaml - apiVersion: v1 - kind: PersistentVolume - metadata: - name: pv0003 +apiVersion: v1 +kind: PersistentVolume +metadata: + name: pv0003 annotations: volume.beta.kubernetes.io/mount-options: "hard,nolock,nfsvers=3" - spec: - capacity: - storage: 5Gi - accessModes: - - ReadWriteOnce - persistentVolumeReclaimPolicy: Recycle - nfs: - path: /tmp - server: 172.17.0.2 +spec: + capacity: + storage: 5Gi + accessModes: + - ReadWriteOnce + persistentVolumeReclaimPolicy: Recycle + nfs: + path: /tmp + server: 172.17.0.2 ``` ### Mount option support in Storage Classes |
