From 5dac65caf3c2821e9474960dbac141895318e4d5 Mon Sep 17 00:00:00 2001 From: Gorden Date: Mon, 19 Feb 2024 11:36:26 +0100 Subject: [PATCH] altered documentation --- Distribution/README.md | 34 +++++++++++++++++++++++++++++++-- Distribution/kustomization.yaml | 1 + 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/Distribution/README.md b/Distribution/README.md index c3bffed..b176953 100644 --- a/Distribution/README.md +++ b/Distribution/README.md @@ -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. diff --git a/Distribution/kustomization.yaml b/Distribution/kustomization.yaml index f65c52b..98e6a7b 100644 --- a/Distribution/kustomization.yaml +++ b/Distribution/kustomization.yaml @@ -6,6 +6,7 @@ namespace: distribution resources: - Namespace.yaml - StorageClass.yaml + - PersistantVolume.yaml - PersistantVolumeClaim.yaml - RegistryDeployment.yaml - Service.yaml \ No newline at end of file