Merge pull request #1529 from xuhuilong/patch-5

Update mount-options.md
This commit is contained in:
k8s-ci-robot 2018-01-26 11:23:32 -08:00 committed by GitHub
commit 81760e4afb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 27 deletions

View File

@ -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