33 lines
1.1 KiB
Text
33 lines
1.1 KiB
Text
|
|
let _presets = (import "schemas/lib/concerns_presets.ncl").presets in
|
||
|
|
|
||
|
|
{
|
||
|
|
local_path_provisioner | default = {
|
||
|
|
name | default = "local-path-provisioner",
|
||
|
|
version | default = "v0.0.30",
|
||
|
|
storage_class_name | default = "local-path",
|
||
|
|
host_path | default = "/var/lib/data/local-path-provisioner",
|
||
|
|
namespace | default = "local-path-storage",
|
||
|
|
reclaim_policy | default = 'Retain,
|
||
|
|
default_storage_class | default = true,
|
||
|
|
|
||
|
|
operations | default = {
|
||
|
|
install = true,
|
||
|
|
reinstall = true,
|
||
|
|
delete = true,
|
||
|
|
health = true,
|
||
|
|
},
|
||
|
|
|
||
|
|
live_check = {
|
||
|
|
strategy = 'k8s_pods,
|
||
|
|
scope = 'cp_only,
|
||
|
|
namespace = "local-path-storage",
|
||
|
|
selector = "local-path-provisioner",
|
||
|
|
},
|
||
|
|
|
||
|
|
# ServiceConcerns default — Rancher local-path provisioner; infrastructure_glue with custom backup reason.
|
||
|
|
concerns | default = _presets.infrastructure_glue & {
|
||
|
|
backup | force = { kind = 'disabled, reason = "state in K8s API + per-node hostPath; PVCs captured by per-component policies" },
|
||
|
|
},
|
||
|
|
},
|
||
|
|
}
|