From 6d22e44d4c50b2d09d1effb3af44ce32d3a01360 Mon Sep 17 00:00:00 2001 From: Sebastian Ohl <s.ohl@ostfalia.de> Date: Tue, 23 Jan 2024 14:20:30 +0100 Subject: [PATCH] adding pvc with node name example --- examples/pvc-with-node/kustomization.yaml | 4 ++++ examples/pvc-with-node/pvc.yaml | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 examples/pvc-with-node/kustomization.yaml create mode 100644 examples/pvc-with-node/pvc.yaml diff --git a/examples/pvc-with-node/kustomization.yaml b/examples/pvc-with-node/kustomization.yaml new file mode 100644 index 00000000..7bfd4518 --- /dev/null +++ b/examples/pvc-with-node/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- pvc.yaml diff --git a/examples/pvc-with-node/pvc.yaml b/examples/pvc-with-node/pvc.yaml new file mode 100644 index 00000000..7ae77388 --- /dev/null +++ b/examples/pvc-with-node/pvc.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: local-path-pvc + annotations: + volume.kubernetes.io/selected-node: MyNode +spec: + accessModes: + - ReadWriteOnce + storageClassName: local-path + resources: + requests: + storage: 128Mi -- GitLab