From cc2838aa240f66b106fdd16b60c40271b2ad065d Mon Sep 17 00:00:00 2001 From: LordMathis Date: Mon, 23 Sep 2024 23:02:44 +0200 Subject: [PATCH] Add retain local path storage class --- infrastructure/base/storage-class/kustomization.yaml | 4 ++++ infrastructure/base/storage-class/storage-class.yaml | 7 +++++++ infrastructure/prod/kustomization.yaml | 7 +++++++ 3 files changed, 18 insertions(+) create mode 100644 infrastructure/base/storage-class/kustomization.yaml create mode 100644 infrastructure/base/storage-class/storage-class.yaml create mode 100644 infrastructure/prod/kustomization.yaml diff --git a/infrastructure/base/storage-class/kustomization.yaml b/infrastructure/base/storage-class/kustomization.yaml new file mode 100644 index 0000000..fb97eb5 --- /dev/null +++ b/infrastructure/base/storage-class/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - storage-class.yaml \ No newline at end of file diff --git a/infrastructure/base/storage-class/storage-class.yaml b/infrastructure/base/storage-class/storage-class.yaml new file mode 100644 index 0000000..d6fabeb --- /dev/null +++ b/infrastructure/base/storage-class/storage-class.yaml @@ -0,0 +1,7 @@ +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: retain-local-path +provisioner: rancher.io/local-path +reclaimPolicy: Retain +volumeBindingMode: WaitForFirstConsumer \ No newline at end of file diff --git a/infrastructure/prod/kustomization.yaml b/infrastructure/prod/kustomization.yaml new file mode 100644 index 0000000..66cb7d1 --- /dev/null +++ b/infrastructure/prod/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../base/storage-class + - cert-manager + - traefik + - authelia \ No newline at end of file