From 73842583d5b0ad98896f3410945f90b7aaaff669 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Mon, 15 Jul 2024 03:26:56 +1000 Subject: [PATCH] refactor local-path-provisioner --- .../base/storage-class.yaml | 42 +------------------ 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/resources/local-path-provisioner/base/storage-class.yaml b/resources/local-path-provisioner/base/storage-class.yaml index 3e6289b..9cfa415 100644 --- a/resources/local-path-provisioner/base/storage-class.yaml +++ b/resources/local-path-provisioner/base/storage-class.yaml @@ -4,44 +4,4 @@ metadata: name: local-path provisioner: rancher.io/local-path volumeBindingMode: WaitForFirstConsumer -reclaimPolicy: Retain ---- -kind: ConfigMap -apiVersion: v1 -metadata: - name: local-path-config - namespace: local-path-storage -data: - config.json: |- - { - "nodePathMap": [ - { - "node": "DEFAULT_PATH_FOR_NON_LISTED_NODES", - "paths": [ - "/opt/local-path-provisioner"] - } - ] - } - setup: |- - #!/bin/sh - set -eu - mkdir -m 0777 -p "$VOL_DIR" - teardown: |- - #!/bin/sh - set -eu - rm -rf "$VOL_DIR" - helperPod.yaml: |- - apiVersion: v1 - kind: Pod - metadata: - name: helper-pod - spec: - priorityClassName: system-node-critical - tolerations: - - key: node.kubernetes.io/disk-pressure - operator: Exists - effect: NoSchedule - containers: - - name: helper-pod - image: busybox - imagePullPolicy: IfNotPresent \ No newline at end of file +reclaimPolicy: Retain \ No newline at end of file