2023-11-28 21:18:02 +00:00
|
|
|
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/data"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"setupCommand": "/manager",
|
|
|
|
"teardownCommand": "/manager"
|
|
|
|
}
|
|
|
|
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
|
2024-09-09 11:49:57 +00:00
|
|
|
image: busybox:1.36@sha256:34b191d63fbc93e25e275bfccf1b5365664e5ac28f06d974e8d50090fbb49f41
|
2023-11-28 21:18:02 +00:00
|
|
|
|