shared-volume

by SVTECH-NMAA

Helm chartv1.1.1App v1.0.0Verified publisher

Shared Longhorn volume

About this chart

Shared Volume Chart

  1. Change storageClass in values.yaml to use seaweedfs or hostpath pv

  2. IF: you use host path pv, the host path will be: /opt/shared/<namespace>/<namespace>-<pv-name>

  3. IF: you use seaweedfs, there are 2 ways to approach the data:

    1. API
      • Filer path: <namespace>/api/
    2. PV mount
      • Filer path: <namespace>/csi/<namespace>-<pv-name>
      • Host path: use mount | grep <namespace>-<pv-name> to find mount path of the pv on the host. It will be something like /var/lib/kubelet/plugins/kubernetes.io/csi/seaweedfs-csi-driver/<random-id>/globalmount
  4. Tree level of Seaweedfs Filer

+--- <namespace_1>
|   +--- api
	|   +--- <data_uploaded_via_api>
|   +--- csi
	|   +--- <namespace_1>-<pv-name>
+--- <namespace_2>
|   +--- api
	|   +--- <data_uploaded_via_api>
|   +--- csi
	|   +--- <namespace_2>-<pv-name>

Deploy shared-volume with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has shared-volume 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 chartshared-volume is pinned at v1.1.1 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