altered documentation
This commit is contained in:
+31
-1
@@ -53,17 +53,47 @@ mountOptions:
|
|||||||
```
|
```
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# PersistantVolumeClaim.yaml
|
---
|
||||||
apiVersion: v1
|
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
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: distribution-pvc
|
name: distribution-pvc
|
||||||
|
namespace: distribution
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 100Gi
|
storage: 100Gi
|
||||||
|
volumeName: distribution-pv
|
||||||
storageClassName: distribution-sc
|
storageClassName: distribution-sc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ namespace: distribution
|
|||||||
resources:
|
resources:
|
||||||
- Namespace.yaml
|
- Namespace.yaml
|
||||||
- StorageClass.yaml
|
- StorageClass.yaml
|
||||||
|
- PersistantVolume.yaml
|
||||||
- PersistantVolumeClaim.yaml
|
- PersistantVolumeClaim.yaml
|
||||||
- RegistryDeployment.yaml
|
- RegistryDeployment.yaml
|
||||||
- Service.yaml
|
- Service.yaml
|
||||||
Reference in New Issue
Block a user