local-path-provisioner
by Helm
Helm chartv0.0.23App v0.0.23
Use HostPath for persistent local storage with Kubernetes
About this chart
local-path-provisioner
Use HostPath for persistent local storage with Kubernetes
Installing the Chart
To install the chart with the release name local-path-provisioner:
$ helm repo add c7n https://openchart.choerodon.com.cn/choerodon/c7n
$ helm repo update
$ helm install local-path-provisioner c7n/local-path-provisioner
Specify each parameter using the --set key=value[,key=value] argument to helm install.
Uninstalling the Chart
$ helm delete local-path-provisioner
Requirements
Kubernetes: >=1.12.0-r0
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| configmap.name | string | "local-path-config" | |
| configmap.setup | string | "#!/bin/sh\nset -eu\nmkdir -m 0777 -p \"$VOL_DIR\"" | |
| configmap.teardown | string | "#!/bin/sh\nset -eu\nrm -rf \"$VOL_DIR\"" | |
| defaultSettings.registrySecret | string | nil | |
| fullnameOverride | string | "" | |
| helperImage.repository | string | "registry.cn-shanghai.aliyuncs.com/c7n/busybox" | |
| helperImage.tag | string | "latest" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "registry.cn-shanghai.aliyuncs.com/c7n/local-path-provisioner" | |
| image.tag | string | "v0.0.23" | |
| imagePullSecrets | list | [] | |
| nameOverride | string | "" | |
| nodePathMap[0].node | string | "DEFAULT_PATH_FOR_NON_LISTED_NODES" | |
| nodePathMap[0].paths[0] | string | "/opt/local-path-provisioner" | |
| nodeSelector | object | {} | |
| privateRegistry.registryPasswd | string | nil | |
| privateRegistry.registryUrl | string | nil | |
| privateRegistry.registryUser | string | nil | |
| rbac.create | bool | true | |
| replicaCount | int | 1 | |
| resources | object | {} | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | nil | |
| storageClass.create | bool | true | |
| storageClass.defaultClass | bool | false | |
| storageClass.name | string | "local-path" | |
| storageClass.reclaimPolicy | string | "Delete" | |
| tolerations | list | [] |
Deploy local-path-provisioner with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has local-path-provisioner on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartlocal-path-provisioner is pinned at v0.0.23 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply