Change path?
This commit is contained in:
34
clusters/kairos/storage/localstorageconfigmap.yaml
Normal file
34
clusters/kairos/storage/localstorageconfigmap.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
kind: ConfigMap
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: local-path-config
|
||||
namespace: kube-system
|
||||
data:
|
||||
config.json: |-
|
||||
{
|
||||
"nodePathMap":[
|
||||
{
|
||||
"node":"DEFAULT_PATH_FOR_NON_LISTED_NODES",
|
||||
"paths":["/usr/local"]
|
||||
}
|
||||
]
|
||||
}
|
||||
helperPod.yaml: |-
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: helper-pod
|
||||
spec:
|
||||
containers:
|
||||
- name: helper-pod
|
||||
image: "rancher/mirrored-library-busybox:1.36.1"
|
||||
imagePullPolicy: IfNotPresent
|
||||
setup: |-
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
mkdir -m 0777 -p "${VOL_DIR}"
|
||||
chmod 700 "${VOL_DIR}/.."
|
||||
teardown: |-
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
rm -rf "${VOL_DIR}"
|
||||
Reference in New Issue
Block a user