From 7805ec02cd17267010bb1a0d52181808a2312920 Mon Sep 17 00:00:00 2001 From: xuhuilong Date: Tue, 19 Dec 2017 14:15:55 +0800 Subject: Update mount-options.md yaml syntax correct. --- .../design-proposals/storage/mount-options.md | 57 ++++++++++++---------- 1 file 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 -- cgit v1.2.3