topolvm
Helm chartv0.0.4App 0.38.1Apache-2.0
Topolvm
About this chart
TopoLVM Helm Chart
Prerequisites
cert-managerversionv1.7.0+installed. ref: https://cert-manager.io/- Requires at least
v3.5.0+version of helm to support
Installation
See Getting Started.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| cert-manager.enabled | bool | false | Install cert-manager together. # ref: https://cert-manager.io/docs/installation/kubernetes/#installing-with-helm |
| controller.additionalContainers | list | [] | Define extra containers to add to the Deployment. Please ensure not to use any existing container names. |
| controller.affinity | string | "podAntiAffinity:\n requiredDuringSchedulingIgnoredDuringExecution:\n - labelSelector:\n matchExpressions:\n - key: app.kubernetes.io/component\n operator: In\n values:\n - controller\n - key: app.kubernetes.io/name\n operator: In\n values:\n - {{ include \"topolvm.name\" . }}\n topologyKey: kubernetes.io/hostname\n" | Specify affinity. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity |
| controller.args | list | [] | Arguments to be passed to the command. |
| controller.initContainers | list | [] | Additional initContainers for the controller service. |
| controller.labels | object | {} | Additional labels to be added to the Deployment. |
| controller.leaderElection.enabled | bool | true | Enable leader election for controller and all sidecars. |
| controller.minReadySeconds | int | nil | Specify minReadySeconds. |
| controller.nodeFinalize.skipped | bool | false | Skip automatic cleanup of PhysicalVolumeClaims when a Node is deleted. |
| controller.nodeSelector | object | {} | Specify nodeSelector. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ |
| controller.podDisruptionBudget.enabled | bool | true | Specify podDisruptionBudget enabled. |
| controller.podLabels | object | {} | Additional labels to be set on the controller pod. |
| controller.priorityClassName | string | nil | Specify priorityClassName. |
| controller.profiling.bindAddress | string | "" | Enables pprof profiling server. If empty, profiling is disabled. |
| controller.prometheus.podMonitor.additionalLabels | object | {} | Additional labels that can be used so PodMonitor will be discovered by Prometheus. |
| controller.prometheus.podMonitor.enabled | bool | false | Set this to true to create PodMonitor for Prometheus operator. |
| controller.prometheus.podMonitor.interval | string | "" | Scrape interval. If not set, the Prometheus default scrape interval is used. |
| controller.prometheus.podMonitor.metricRelabelings | list | [] | MetricRelabelConfigs to apply to samples before ingestion. |
| controller.prometheus.podMonitor.namespace | string | "" | Optional namespace in which to create PodMonitor. |
| controller.prometheus.podMonitor.relabelings | list | [] | RelabelConfigs to apply to samples before scraping. |
| controller.prometheus.podMonitor.scrapeTimeout | string | "" | Scrape timeout. If not set, the Prometheus default scrape timeout is used. |
| controller.replicaCount | int | 2 | Number of replicas for CSI controller service. |
| controller.securityContext.enabled | bool | true | Enable securityContext. |
| controller.storageCapacityTracking.enabled | bool | true | Enable Storage Capacity Tracking for csi-provisioner. |
| controller.terminationGracePeriodSeconds | int | nil | Specify terminationGracePeriodSeconds. |
| controller.tolerations | list | [] | Specify tolerations. # ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
| controller.updateStrategy | object | {} | Specify updateStrategy. |
| controller.volumes | list | [{"emptyDir":{},"name":"socket-dir"}] | Specify volumes. |
| env.csi_provisioner | list | [] | Specify environment variables for csi_provisioner container. |
| env.csi_registrar | list | [] | Specify environment variables for csi_registrar container. |
| env.csi_resizer | list | [] | Specify environment variables for csi_resizer container. |
| env.csi_snapshotter | list | [] | Specify environment variables for csi_snapshotter container. |
| env.liveness_probe | list | [] | Specify environment variables for liveness_probe container. |
| env.topolvm_controller | list | [] | Specify environment variables for topolvm_controller container. |
| env.topolvm_node | list | [] | Specify environment variables for topolvm_node container. |
| env.topolvm_scheduler | list | [] | Specify environment variables for topolvm_scheduler container. |
| image.csi.csiProvisioner | string | nil | Specify csi-provisioner image. If not specified, ghcr.io/topolvm/topolvm-with-sidecar:{{ .Values.image.tag }} will be used. |
| image.csi.csiResizer | string | nil | Specify csi-resizer image. If not specified, ghcr.io/topolvm/topolvm-with-sidecar:{{ .Values.image.tag }} will be used. |
| image.csi.csiSnapshotter | string | nil | Specify csi-snapshot image. If not specified, ghcr.io/topolvm/topolvm-with-sidecar:{{ .Values.image.tag }} will be used. |
| image.csi.livenessProbe | string | nil | Specify livenessprobe image. If not specified, ghcr.io/topolvm/topolvm-with-sidecar:{{ .Values.image.tag }} will be used. |
| image.csi.nodeDriverRegistrar | string | nil | Specify csi-node-driver-registrar: image. If not specified, ghcr.io/topolvm/topolvm-with-sidecar:{{ .Values.image.tag }} will be used. |
| image.pullPolicy | string | nil | TopoLVM image pullPolicy. |
| image.pullSecrets | list | [] | List of imagePullSecrets. |
| image.repository | string | "ghcr.io/topolvm/topolvm-with-sidecar" | TopoLVM image repository to use. |
| image.tag | string | {{ .Chart.AppVersion }} | TopoLVM image tag to use. |
| livenessProbe.csi_registrar | object | {"failureThreshold":null,"initialDelaySeconds":10,"periodSeconds":60,"timeoutSeconds":3} | Specify livenessProbe. # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ |
| livenessProbe.lvmd | object | {"failureThreshold":null,"initialDelaySeconds":10,"periodSeconds":60,"timeoutSeconds":3} | Specify livenessProbe. # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ |
| livenessProbe.topolvm_controller | object | {"failureThreshold":null,"initialDelaySeconds":10,"periodSeconds":60,"timeoutSeconds":3} | Specify livenessProbe. # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ |
| livenessProbe.topolvm_node | object | {"failureThreshold":null,"initialDelaySeconds":10,"periodSeconds":60,"timeoutSeconds":3} | Specify resources. # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ |
| livenessProbe.topolvm_scheduler | object | {"failureThreshold":null,"initialDelaySeconds":10,"periodSeconds":60,"timeoutSeconds":3} | Specify livenessProbe. # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ |
| lvmd.additionalConfigs | list | [] | Define additional LVM Daemon configs if you have additional types of nodes. Please ensure nodeSelectors are non overlapping. |
| lvmd.additionalContainers | list | [] | Define extra containers to add to the Daemonset. Please ensure not to use any existing container names. |
| lvmd.additionalLVMDYamlContent | object | {} | Specify additional content to be added to the lvmd.yaml file. |
| lvmd.additionalVolumes | list | [] | Specify additional volumes without conflicting with default volumes most useful for initContainers but available to all containers in the pod. |
| lvmd.affinity | object | {} | Specify affinity. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity |
| lvmd.args | list | [] | Arguments to be passed to the command. |
| lvmd.deviceClasses | list | [{"default":true,"name":"ssd","spare-gb":10,"volume-group":"myvg1"}] | Specify the device-class settings. |
| lvmd.env | list | [] | extra environment variables |
| lvmd.initContainers | list | [] | Additional initContainers for the lvmd service. |
| lvmd.labels | object | {} | Additional labels to be added to the Daemonset. |
| lvmd.lvcreateOptionClasses | list | [] | Specify the lvcreate-option-class settings. |
| lvmd.managed | bool | true | If true, set up lvmd service with DaemonSet. |
| lvmd.metrics.annotations | object | {"prometheus.io/port":"metrics"} | Annotations for Scrape used by Prometheus. |
| lvmd.metrics.enabled | bool | true | If true, enable scraping of metrics by Prometheus. |
| lvmd.nodeSelector | object | {} | Specify nodeSelector. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ |
| lvmd.podLabels | object | {} | Additional labels to be set on the lvmd service pods. |
| lvmd.priorityClassName | string | nil | Specify priorityClassName. |
| lvmd.profiling.bindAddress | string | "" | Enables pprof profiling server. If empty, profiling is disabled. |
| lvmd.prometheus.podMonitor.additionalLabels | object | {} | Additional labels that can be used so PodMonitor will be discovered by Prometheus. |
| lvmd.prometheus.podMonitor.enabled | bool | false | Set this to true to create PodMonitor for Prometheus operator. |
| lvmd.prometheus.podMonitor.interval | string | "" | Scrape interval. If not set, the Prometheus default scrape interval is used. |
| lvmd.prometheus.podMonitor.metricRelabelings | list | [] | MetricRelabelConfigs to apply to samples before ingestion. |
| lvmd.prometheus.podMonitor.namespace | string | "" | Optional namespace in which to create PodMonitor. |
| lvmd.prometheus.podMonitor.relabelings | list | [] | RelabelConfigs to apply to samples before scraping. |
| lvmd.prometheus.podMonitor.scrapeTimeout | string | "" | Scrape timeout. If not set, the Prometheus default scrape timeout is used. |
| lvmd.securityContext | object | {"privileged":true} | Container securityContext. # ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| lvmd.socketName | string | "/run/topolvm/lvmd.sock" | Specify socketName. |
| lvmd.tolerations | list | [] | Specify tolerations. # ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
| lvmd.updateStrategy | object | {} | Specify updateStrategy. |
| lvmd.volumeMounts | list | [] | Specify volumeMounts. |
| lvmd.volumes | list | [] | Specify volumes. |
| node.additionalContainers | list | [] | Define extra containers to add to the Daemonset. Please ensure not to use any existing container names. |
| node.additionalVolumes | list | [] | Specify additional volumes without conflicting with default volumes most useful for initContainers but available to all containers in the pod. |
| node.affinity | object | {} | Specify affinity. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity |
| node.args | list | [] | Arguments to be passed to the command. |
| node.initContainers | list | [] | Additional initContainers for the node service. |
| node.kubeletWorkDirectory | string | "/var/lib/kubelet" | Specify the work directory of Kubelet on the host. For example, on microk8s it needs to be set to /var/snap/microk8s/common/var/lib/kubelet |
| node.labels | object | {} | Additional labels to be added to the Daemonset. |
| node.lvmdEmbedded | bool | false | Specify whether to embed lvmd in the node container. Should not be used in conjunction with lvmd.managed otherwise lvmd will be started twice. |
| node.lvmdSocket | string | "/run/topolvm/lvmd.sock" | Specify the socket to be used for communication with lvmd. |
| node.metrics.annotations | object | {"prometheus.io/port":"metrics"} | Annotations for Scrape used by Prometheus. |
| node.metrics.enabled | bool | true | If true, enable scraping of metrics by Prometheus. |
| node.nodeSelector | object | {} | Specify nodeSelector. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ |
| node.podLabels | object | {} | Additional labels to be set on the node pods. |
| node.podSecurityContext | object | {} | Pod securityContext. # ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| node.priorityClassName | string | nil | Specify priorityClassName. |
| node.profiling.bindAddress | string | "" | Enables pprof profiling server. if empty profiling is disabled. |
| node.prometheus.podMonitor.additionalLabels | object | {} | Additional labels that can be used so PodMonitor will be discovered by Prometheus. |
| node.prometheus.podMonitor.enabled | bool | false | Set this to true to create PodMonitor for Prometheus operator. |
| node.prometheus.podMonitor.interval | string | "" | Scrape interval. If not set, the Prometheus default scrape interval is used. |
| node.prometheus.podMonitor.metricRelabelings | list | [] | MetricRelabelConfigs to apply to samples before ingestion. |
| node.prometheus.podMonitor.namespace | string | "" | Optional namespace in which to create PodMonitor. |
| node.prometheus.podMonitor.relabelings | list | [] | RelabelConfigs to apply to samples before scraping. |
| node.prometheus.podMonitor.scrapeTimeout | string | "" | Scrape timeout. If not set, the Prometheus default scrape timeout is used. |
| node.securityContext.privileged | bool | true | |
| node.tolerations | list | [] | Specify tolerations. # ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
| node.updateStrategy | object | {} | Specify updateStrategy. |
| node.volumeMounts.topolvm |
Deploy topolvm with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has topolvm 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 charttopolvm is pinned at v0.0.4 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