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 ```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
``` ```
Create Namespace.yaml, StorageClass.yaml and PersistantVolumeClaim.yaml with the above content. Create Namespace.yaml, StorageClass.yaml and PersistantVolumeClaim.yaml with the above content.
+1
View File
@@ -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