From b8bebe43ac06127a7df1d6b4a4fbc5a4c011b503 Mon Sep 17 00:00:00 2001 From: Bala Siva Sai Akhil Malepati Date: Wed, 4 Sep 2024 16:49:06 +0000 Subject: [PATCH] Add local Persistent Volume for SPIRE server for kubeadm Signed-off-by: Bala Siva Sai Akhil Malepati --- .../server-local-persistentvolume.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 k8s/quickstart/server-local-persistentvolume.yaml diff --git a/k8s/quickstart/server-local-persistentvolume.yaml b/k8s/quickstart/server-local-persistentvolume.yaml new file mode 100644 index 0000000..787145e --- /dev/null +++ b/k8s/quickstart/server-local-persistentvolume.yaml @@ -0,0 +1,20 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: local-storage-pv +spec: + capacity: + storage: 1Gi + accessModes: + - ReadWriteOnce + local: + path: /mnt/disks/ssd1 + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - kubeadm-worker-1 +