altered documentation
This commit is contained in:
+31
-1
@@ -53,17 +53,47 @@ mountOptions:
|
||||
```
|
||||
|
||||
```yaml
|
||||
# PersistantVolumeClaim.yaml
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
annotations:
|
||||
pv.kubernetes.io/provisioned-by: nfs.csi.k8s.io
|
||||
name: distribution-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 100Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: distribution-sc
|
||||
mountOptions:
|
||||
- nfsvers=4.1
|
||||
csi:
|
||||
driver: nfs.csi.k8s.io
|
||||
# volumeHandle format: {nfs-server-address}#{sub-dir-name}#{share-name}
|
||||
# make sure this value is unique for every share in the cluster
|
||||
volumeHandle: 192.168.202.50/srv/distribution##
|
||||
volumeAttributes:
|
||||
server: 192.168.202.50
|
||||
share: /srv/distribution
|
||||
```
|
||||
|
||||
```yaml
|
||||
# PersistantVolumeClaim.yaml
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: distribution-pvc
|
||||
namespace: distribution
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Gi
|
||||
volumeName: distribution-pv
|
||||
storageClassName: distribution-sc
|
||||
```
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace: distribution
|
||||
resources:
|
||||
- Namespace.yaml
|
||||
- StorageClass.yaml
|
||||
- PersistantVolume.yaml
|
||||
- PersistantVolumeClaim.yaml
|
||||
- RegistryDeployment.yaml
|
||||
- Service.yaml
|
||||
Reference in New Issue
Block a user