Create local path provisioner config

This commit is contained in:
SeanOMik 2023-04-16 19:50:03 -04:00
parent 83dd8a05b3
commit 9c5328845c
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./local-path-config.yaml

View File

@ -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