topolvm

by joaquinito2051

Helm chartv0.0.4App 0.38.1Apache-2.0

Topolvm

About this chart

TopoLVM Helm Chart

Prerequisites

  • cert-manager version v1.7.0+ installed. ref: https://cert-manager.io/
  • Requires at least v3.5.0+ version of helm to support

Installation

See Getting Started.

Values

KeyTypeDefaultDescription
cert-manager.enabledboolfalseInstall cert-manager together. # ref: https://cert-manager.io/docs/installation/kubernetes/#installing-with-helm
controller.additionalContainerslist[]Define extra containers to add to the Deployment. Please ensure not to use any existing container names.
controller.affinitystring"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.argslist[]Arguments to be passed to the command.
controller.initContainerslist[]Additional initContainers for the controller service.
controller.labelsobject{}Additional labels to be added to the Deployment.
controller.leaderElection.enabledbooltrueEnable leader election for controller and all sidecars.
controller.minReadySecondsintnilSpecify minReadySeconds.
controller.nodeFinalize.skippedboolfalseSkip automatic cleanup of PhysicalVolumeClaims when a Node is deleted.
controller.nodeSelectorobject{}Specify nodeSelector. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
controller.podDisruptionBudget.enabledbooltrueSpecify podDisruptionBudget enabled.
controller.podLabelsobject{}Additional labels to be set on the controller pod.
controller.priorityClassNamestringnilSpecify priorityClassName.
controller.profiling.bindAddressstring""Enables pprof profiling server. If empty, profiling is disabled.
controller.prometheus.podMonitor.additionalLabelsobject{}Additional labels that can be used so PodMonitor will be discovered by Prometheus.
controller.prometheus.podMonitor.enabledboolfalseSet this to true to create PodMonitor for Prometheus operator.
controller.prometheus.podMonitor.intervalstring""Scrape interval. If not set, the Prometheus default scrape interval is used.
controller.prometheus.podMonitor.metricRelabelingslist[]MetricRelabelConfigs to apply to samples before ingestion.
controller.prometheus.podMonitor.namespacestring""Optional namespace in which to create PodMonitor.
controller.prometheus.podMonitor.relabelingslist[]RelabelConfigs to apply to samples before scraping.
controller.prometheus.podMonitor.scrapeTimeoutstring""Scrape timeout. If not set, the Prometheus default scrape timeout is used.
controller.replicaCountint2Number of replicas for CSI controller service.
controller.securityContext.enabledbooltrueEnable securityContext.
controller.storageCapacityTracking.enabledbooltrueEnable Storage Capacity Tracking for csi-provisioner.
controller.terminationGracePeriodSecondsintnilSpecify terminationGracePeriodSeconds.
controller.tolerationslist[]Specify tolerations. # ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
controller.updateStrategyobject{}Specify updateStrategy.
controller.volumeslist[{"emptyDir":{},"name":"socket-dir"}]Specify volumes.
env.csi_provisionerlist[]Specify environment variables for csi_provisioner container.
env.csi_registrarlist[]Specify environment variables for csi_registrar container.
env.csi_resizerlist[]Specify environment variables for csi_resizer container.
env.csi_snapshotterlist[]Specify environment variables for csi_snapshotter container.
env.liveness_probelist[]Specify environment variables for liveness_probe container.
env.topolvm_controllerlist[]Specify environment variables for topolvm_controller container.
env.topolvm_nodelist[]Specify environment variables for topolvm_node container.
env.topolvm_schedulerlist[]Specify environment variables for topolvm_scheduler container.
image.csi.csiProvisionerstringnilSpecify csi-provisioner image. If not specified, ghcr.io/topolvm/topolvm-with-sidecar:{{ .Values.image.tag }} will be used.
image.csi.csiResizerstringnilSpecify csi-resizer image. If not specified, ghcr.io/topolvm/topolvm-with-sidecar:{{ .Values.image.tag }} will be used.
image.csi.csiSnapshotterstringnilSpecify csi-snapshot image. If not specified, ghcr.io/topolvm/topolvm-with-sidecar:{{ .Values.image.tag }} will be used.
image.csi.livenessProbestringnilSpecify livenessprobe image. If not specified, ghcr.io/topolvm/topolvm-with-sidecar:{{ .Values.image.tag }} will be used.
image.csi.nodeDriverRegistrarstringnilSpecify csi-node-driver-registrar: image. If not specified, ghcr.io/topolvm/topolvm-with-sidecar:{{ .Values.image.tag }} will be used.
image.pullPolicystringnilTopoLVM image pullPolicy.
image.pullSecretslist[]List of imagePullSecrets.
image.repositorystring"ghcr.io/topolvm/topolvm-with-sidecar"TopoLVM image repository to use.
image.tagstring{{ .Chart.AppVersion }}TopoLVM image tag to use.
livenessProbe.csi_registrarobject{"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.lvmdobject{"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_controllerobject{"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_nodeobject{"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_schedulerobject{"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.additionalConfigslist[]Define additional LVM Daemon configs if you have additional types of nodes. Please ensure nodeSelectors are non overlapping.
lvmd.additionalContainerslist[]Define extra containers to add to the Daemonset. Please ensure not to use any existing container names.
lvmd.additionalLVMDYamlContentobject{}Specify additional content to be added to the lvmd.yaml file.
lvmd.additionalVolumeslist[]Specify additional volumes without conflicting with default volumes most useful for initContainers but available to all containers in the pod.
lvmd.affinityobject{}Specify affinity. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
lvmd.argslist[]Arguments to be passed to the command.
lvmd.deviceClasseslist[{"default":true,"name":"ssd","spare-gb":10,"volume-group":"myvg1"}]Specify the device-class settings.
lvmd.envlist[]extra environment variables
lvmd.initContainerslist[]Additional initContainers for the lvmd service.
lvmd.labelsobject{}Additional labels to be added to the Daemonset.
lvmd.lvcreateOptionClasseslist[]Specify the lvcreate-option-class settings.
lvmd.managedbooltrueIf true, set up lvmd service with DaemonSet.
lvmd.metrics.annotationsobject{"prometheus.io/port":"metrics"}Annotations for Scrape used by Prometheus.
lvmd.metrics.enabledbooltrueIf true, enable scraping of metrics by Prometheus.
lvmd.nodeSelectorobject{}Specify nodeSelector. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
lvmd.podLabelsobject{}Additional labels to be set on the lvmd service pods.
lvmd.priorityClassNamestringnilSpecify priorityClassName.
lvmd.profiling.bindAddressstring""Enables pprof profiling server. If empty, profiling is disabled.
lvmd.prometheus.podMonitor.additionalLabelsobject{}Additional labels that can be used so PodMonitor will be discovered by Prometheus.
lvmd.prometheus.podMonitor.enabledboolfalseSet this to true to create PodMonitor for Prometheus operator.
lvmd.prometheus.podMonitor.intervalstring""Scrape interval. If not set, the Prometheus default scrape interval is used.
lvmd.prometheus.podMonitor.metricRelabelingslist[]MetricRelabelConfigs to apply to samples before ingestion.
lvmd.prometheus.podMonitor.namespacestring""Optional namespace in which to create PodMonitor.
lvmd.prometheus.podMonitor.relabelingslist[]RelabelConfigs to apply to samples before scraping.
lvmd.prometheus.podMonitor.scrapeTimeoutstring""Scrape timeout. If not set, the Prometheus default scrape timeout is used.
lvmd.securityContextobject{"privileged":true}Container securityContext. # ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
lvmd.socketNamestring"/run/topolvm/lvmd.sock"Specify socketName.
lvmd.tolerationslist[]Specify tolerations. # ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
lvmd.updateStrategyobject{}Specify updateStrategy.
lvmd.volumeMountslist[]Specify volumeMounts.
lvmd.volumeslist[]Specify volumes.
node.additionalContainerslist[]Define extra containers to add to the Daemonset. Please ensure not to use any existing container names.
node.additionalVolumeslist[]Specify additional volumes without conflicting with default volumes most useful for initContainers but available to all containers in the pod.
node.affinityobject{}Specify affinity. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
node.argslist[]Arguments to be passed to the command.
node.initContainerslist[]Additional initContainers for the node service.
node.kubeletWorkDirectorystring"/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.labelsobject{}Additional labels to be added to the Daemonset.
node.lvmdEmbeddedboolfalseSpecify whether to embed lvmd in the node container. Should not be used in conjunction with lvmd.managed otherwise lvmd will be started twice.
node.lvmdSocketstring"/run/topolvm/lvmd.sock"Specify the socket to be used for communication with lvmd.
node.metrics.annotationsobject{"prometheus.io/port":"metrics"}Annotations for Scrape used by Prometheus.
node.metrics.enabledbooltrueIf true, enable scraping of metrics by Prometheus.
node.nodeSelectorobject{}Specify nodeSelector. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
node.podLabelsobject{}Additional labels to be set on the node pods.
node.podSecurityContextobject{}Pod securityContext. # ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
node.priorityClassNamestringnilSpecify priorityClassName.
node.profiling.bindAddressstring""Enables pprof profiling server. if empty profiling is disabled.
node.prometheus.podMonitor.additionalLabelsobject{}Additional labels that can be used so PodMonitor will be discovered by Prometheus.
node.prometheus.podMonitor.enabledboolfalseSet this to true to create PodMonitor for Prometheus operator.
node.prometheus.podMonitor.intervalstring""Scrape interval. If not set, the Prometheus default scrape interval is used.
node.prometheus.podMonitor.metricRelabelingslist[]MetricRelabelConfigs to apply to samples before ingestion.
node.prometheus.podMonitor.namespacestring""Optional namespace in which to create PodMonitor.
node.prometheus.podMonitor.relabelingslist[]RelabelConfigs to apply to samples before scraping.
node.prometheus.podMonitor.scrapeTimeoutstring""Scrape timeout. If not set, the Prometheus default scrape timeout is used.
node.securityContext.privilegedbooltrue
node.tolerationslist[]Specify tolerations. # ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
node.updateStrategyobject{}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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charttopolvm is pinned at v0.0.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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