altered documentation

This commit is contained in:
2024-02-19 11:36:26 +01:00
parent a423a6bc0e
commit 5dac65caf3
2 changed files with 33 additions and 2 deletions
+32 -2
View File
@@ -53,19 +53,49 @@ 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
```
```
Create Namespace.yaml, StorageClass.yaml and PersistantVolumeClaim.yaml with the above content.
+1
View File
@@ -6,6 +6,7 @@ namespace: distribution
resources:
- Namespace.yaml
- StorageClass.yaml
- PersistantVolume.yaml
- PersistantVolumeClaim.yaml
- RegistryDeployment.yaml
- Service.yaml