diff --git a/cluster/core/kube-system/kustomization.yaml b/cluster/core/kube-system/kustomization.yaml new file mode 100644 index 0000000..f2b0e0c --- /dev/null +++ b/cluster/core/kube-system/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ./local-path-config.yaml \ No newline at end of file diff --git a/cluster/core/kube-system/local-path-config.yaml b/cluster/core/kube-system/local-path-config.yaml new file mode 100644 index 0000000..032e6b5 --- /dev/null +++ b/cluster/core/kube-system/local-path-config.yaml @@ -0,0 +1,32 @@ +kind: ConfigMap +apiVersion: v1 +metadata: + name: local-path-config + namespace: kube-system +data: + config.json: |- + { + "nodePathMap":[ + { + "node":"DEFAULT_PATH_FOR_NON_LISTED_NODES", + "paths":[ "/mnt/MainPool/Kubernetes/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: + containers: + - name: helper-pod + image: busybox \ No newline at end of file