filebrowser

by utkuozdemir

Helm chartv1.0.0App v2.23.0MITVerified publisher

A Helm chart for the File Browser project

About this chart

filebrowser

A Helm chart for the File Browser project

Homepage: https://filebrowser.org

TL;DR;

$ helm repo add utkuozdemir https://utkuozdemir.org/helm-charts
$ helm install my-release utkuozdemir/filebrowser

Introduction

This chart packages the project filebrowser as a Helm chart.

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add utkuozdemir https://utkuozdemir.org/helm-charts
$ helm install my-release utkuozdemir/filebrowser

Important: See the Parameters section lists the parameters that need to be configured during the installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Upgrade Notes

Please read the upgrade notes before upgrading. There may be breaking changes!

From 0.1.x to 0.2.x

  • The values persistence.rootDir.* and persistence.db.* are renamed to rootDir.pvc.* and db.pvc.*. You should rename your values accordingly.
  • A new value rootDir.type is introduced. The default value is pvc, which is same as the previous default. You can instead set it to hostPath to mount

Parameters

The following tables lists the configurable parameters of the chart and their default values.

Values

KeyTypeDefaultDescription
affinityobject{}Map of node/pod affinities
configobjectsee values.yamlFile Browser application specific configuration
db.pvc.accessModeslist["ReadWriteOnce"]Access modes for the database PVC
db.pvc.enabledbooltrueEnable persistence for database
db.pvc.existingClaimstring""Existing claim for the database
db.pvc.sizestring"256Mi"Size for the database PVC
db.pvc.storageClassNamestring""Storage class name for the database PVC
fullnameOverridestring""String to fully override the fullname template with a string
image.pullPolicystring"IfNotPresent"Container image pull policy
image.repositorystring"docker.io/filebrowser/filebrowser"Container image name
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]Array of imagePullSecrets in the namespace for pulling images
ingress.annotationsobject{}Annotations for the Ingress
ingress.classNamestring""Class name of the Ingress
ingress.enabledboolfalseEnable the use of the ingress controller to access the web UI
ingress.hostslistsee values.yamlHosts for the ingress
ingress.tlslist[]
initContainerslist[]Set of initContainers for the deployment
livenessProbeobject{}Liveness probe configuration
nameOverridestring""String to partially override the fullname template with a string (will prepend the release name)
nodeSelectorobject{}Node labels for pod assignment
podAnnotationsobject{}Annotations of the pods
podSecurityContextobject{}The security context for the pods
readinessProbeobjectsee values.yamlReadiness probe configuration
replicaCountint1Number of replicas to run. Chart is not designed to scale horizontally, use at your own risk
resourcesobject{}The resources to allocate for the container
rootDir.hostPath.pathstring"/path/on/host"
rootDir.pvc.accessModeslist["ReadWriteOnce"]Access modes for the root directory PVC
rootDir.pvc.existingClaimstring""Existing claim for the root directory
rootDir.pvc.sizestring"2Gi"Size for the root directory PVC
rootDir.pvc.storageClassNamestring""Storage class name for the root directory PVC
rootDir.readOnlyboolfalseMount the root directory in read-only mode
rootDir.typestring"pvc"type of rootDir mount. Valid values are [pvc, hostPath, emptyDir]
securityContextobject{}The security context for the application container
service.portint80Kubernetes Service port
service.typestring"ClusterIP"Kubernetes Service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
strategyobject{"type":"Recreate"}Deployment strategy to use
tolerationslist[]Tolerations for pod assignment

Deploy filebrowser with OpenTenant

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