diff options
| author | xuhuilong <xuhuilong@ghostcloud.cn> | 2017-12-19 14:15:55 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-19 14:15:55 +0800 |
| commit | 7805ec02cd17267010bb1a0d52181808a2312920 (patch) | |
| tree | 2d3d847cfcd9b6a5c80e08e87a17c8f6d4f2969a | |
| parent | c023937b0ddab45dc70dd02d7a24666962104506 (diff) | |
Update mount-options.md
yaml syntax correct.
| -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 099e8602..741f60c5 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 |
