librephotos
by k8s On Lab
Helm chartv1.4.0App 1.6.0Apache-2.0Verified publisher
Helmchart used to install Librephotos in a microservice manner
About this chart
librephotos
Helmchart used to install Librephotos in a microservice manner
Homepage: https://github.com/k8sonlab/publiccharts/tree/main/charts/librephotos
Install
You can install this chart from the classic Helm repository or from OCI in GHCR.
Helm repository
helm repo add publiccharts https://charts.ar80.eu
helm repo update
helm install my-release publiccharts/librephotos
OCI registry (GHCR)
helm registry login ghcr.io
helm install my-release oci://ghcr.io/k8sonlab/publiccharts/librephotos --version <chart-version>
Maintainers
| Name | Url | |
|---|---|---|
| varet80 | https://github.com/varet80 |
Source Code
Requirements
Kubernetes: >=1.16.0-0
| Repository | Name | Version |
|---|---|---|
| https://charts.bitnami.com/bitnami | postgresql | >= 12.8.2 |
| https://charts.bitnami.com/bitnami | redis | >= 21.0.0 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| backend.replicaCount | int | 1 | Replica counts |
| backend.annotations | object | {} | Annotations |
| backend.updateStrategyType | string | "Recreate" | Using recreate strategy, as this helps to run only one container at a time |
| backend.image.repository | string | "reallibrephotos/librephotos" | Repository and image name |
| backend.resources.limits.memory | string | "8Gi" | |
| backend.resources.requests.cpu | string | "10m" | |
| backend.resources.requests.memory | string | "50Mi" | |
| backend.env.DEBUG | string | "0" | |
| backend.env.HEAVYWEIGHT_PROCESS | string | "2" | |
| backend.env.SKIP_PATTERNS | string | "" | |
| backend.env.WEB_CONCURRENCY | string | "4" | |
| backend.env.ALLOW_UPLOAD | string | "false" | |
| backend.envTemplates.redisPort | string | "{{ .Values.redis.master.containerPorts.redis }}" | redis port retrieved by parent helm chart |
| backend.envTemplates.dbName | string | "{{ default .Values.postgresql.auth.database .Values.pg.override.database }}" | Postgresql DB Name |
| backend.envTemplates.dbPort | string | "{{ default .Values.postgresql.containerPorts.postgresql .Values.pg.override.port }}" | Postgresql DB port |
| backend.envTemplates.dbUser | string | "{{ default .Values.postgresql.auth.database .Values.pg.override.user }}" | Postgresql DB password |
| backend.envTemplates.dbBackend | string | "postgresql" | Database Backend type, supporting postgresql |
| backend.externalSecrets | list | [] | List of external secrets to be used as Environment Variable sources |
| backend.externalConfigMaps | list | [] | List of external secrets to be used as Environment Variable sources |
| backend.healthchecks.livenessProbe.tcpSocket.port | int | 8001 | |
| backend.healthchecks.livenessProbe.initialDelaySeconds | int | 10 | |
| backend.healthchecks.livenessProbe.failureThreshold | int | 5 | |
| backend.healthchecks.livenessProbe.timeoutSeconds | int | 5 | |
| backend.healthchecks.livenessProbe.periodSeconds | int | 120 | |
| backend.healthchecks.readinessProbe.tcpSocket.port | int | 8001 | |
| backend.healthchecks.readinessProbe.initialDelaySeconds | int | 10 | |
| backend.healthchecks.readinessProbe.failureThreshold | int | 5 | |
| backend.healthchecks.readinessProbe.timeoutSeconds | int | 5 | |
| backend.healthchecks.readinessProbe.periodSeconds | int | 120 | |
| backend.healthchecks.startupProbe.tcpSocket.port | int | 8001 | |
| backend.healthchecks.startupProbe.initialDelaySeconds | int | 10 | |
| backend.healthchecks.startupProbe.failureThreshold | int | 60 | |
| backend.healthchecks.startupProbe.timeoutSeconds | int | 2 | |
| backend.healthchecks.startupProbe.periodSeconds | int | 5 | |
| frontend.podAffinity.enabled | bool | true | Force pods to deploy on same node as backend |
| frontend.replicaCount | int | 1 | |
| frontend.updateStrategyType | string | "RollingUpdate" | |
| frontend.annotations | object | {} | |
| frontend.image.repository | string | "reallibrephotos/librephotos-frontend" | |
| frontend.healthchecks.livenessProbe.tcpSocket.port | int | 3000 | |
| frontend.healthchecks.livenessProbe.initialDelaySeconds | int | 10 | |
| frontend.healthchecks.livenessProbe.failureThreshold | int | 5 | |
| frontend.healthchecks.livenessProbe.timeoutSeconds | int | 5 | |
| frontend.healthchecks.livenessProbe.periodSeconds | int | 120 | |
| frontend.healthchecks.readinessProbe.tcpSocket.port | int | 3000 | |
| frontend.healthchecks.readinessProbe.initialDelaySeconds | int | 10 | |
| frontend.healthchecks.readinessProbe.failureThreshold | int | 5 | |
| frontend.healthchecks.readinessProbe.timeoutSeconds | int | 5 | |
| frontend.healthchecks.readinessProbe.periodSeconds | int | 120 | |
| frontend.healthchecks.startupProbe.tcpSocket.port | int | 3000 | |
| frontend.healthchecks.startupProbe.initialDelaySeconds | int | 10 | |
| frontend.healthchecks.startupProbe.failureThreshold | int | 60 | |
| frontend.healthchecks.startupProbe.timeoutSeconds | int | 2 | |
| frontend.healthchecks.startupProbe.periodSeconds | int | 5 | |
| proxy.podAffinity.enabled | bool | true | Force pods to deploy on same node as backend |
| proxy.replicaCount | int | 1 | |
| proxy.updateStrategyType | string | "RollingUpdate" | |
| proxy.annotations | object | {} | |
| proxy.image.repository | string | "reallibrephotos/librephotos-proxy" | |
| proxy.healthchecks.livenessProbe.tcpSocket.port | int | 80 | |
| proxy.healthchecks.livenessProbe.initialDelaySeconds | int | 10 | |
| proxy.healthchecks.livenessProbe.failureThreshold | int | 5 | |
| proxy.healthchecks.livenessProbe.timeoutSeconds | int | 5 | |
| proxy.healthchecks.livenessProbe.periodSeconds | int | 60 | |
| proxy.healthchecks.readinessProbe.httpGet.path | string | "/" | |
| proxy.healthchecks.readinessProbe.httpGet.port | int | 80 | |
| proxy.healthchecks.readinessProbe.initialDelaySeconds | int | 10 | |
| proxy.healthchecks.readinessProbe.failureThreshold | int | 5 | |
| proxy.healthchecks.readinessProbe.timeoutSeconds | int | 5 | |
| proxy.healthchecks.readinessProbe.periodSeconds | int | 60 | |
| proxy.healthchecks.startupProbe.tcpSocket.port | int | 80 | |
| proxy.healthchecks.startupProbe.initialDelaySeconds | int | 10 | |
| proxy.healthchecks.startupProbe.failureThreshold | int | 60 | |
| proxy.healthchecks.startupProbe.timeoutSeconds | int | 2 | |
| proxy.healthchecks.startupProbe.periodSeconds | int | 5 | |
| service.backend.type | string | "ClusterIP" | |
| service.backend.ports[0].port | int | 80 | |
| service.backend.ports[0].targetPort | int | 8001 | |
| service.backend.ports[0].protocol | string | "TCP" | |
| service.backend.ports[0].name | string | "backend" | |
| service.backend.annotations | object | {} | |
| service.frontend.type | string | "ClusterIP" | |
| service.frontend.ports[0].port | int | 80 | |
| service.frontend.ports[0].targetPort | int | 3000 | |
| service.frontend.ports[0].protocol | string | "TCP" | |
| service.frontend.ports[0].name | string | "backend" | |
| service.frontend.annotations | object | {} | |
| service.proxy.type | string | "ClusterIP" | |
| service.proxy.ports[0].port | int | 80 | |
| service.proxy.ports[0].targetPort | int | 80 | |
| service.proxy.ports[0].protocol | string | "TCP" | |
| service.proxy.ports[0].name | string | "backend" | |
| service.proxy.annotations | object | {} | |
| secret.ADMIN_EMAIL | string | "[email protected]" | |
| secret.ADMIN_USERNAME | string | "admin" | |
| secret.ADMIN_PASSWORD | string | "password" | |
| secret.MAPBOX_API_KEY | string | "" | |
| externalSecretKey | bool | false | Enable if you want to completely ignore management of external Secret Key secret creation |
| cronjob.type | string | "native" | Create a native kubernetes cronjob, using roles to access kubernetes exec and execute the python through a third party container. This is an Antipattern! but the only way, till another exists |
| cronjob.native.annotations | object | {} | Annotations for the cronjog |
| cronjob.native.schedule | string | "0 * * * *" | Cronjob schedule |
| cronjob.native.concurrencyPolicy | string | "Forbid" | concurrency policy, Forbid as default, to avoid running two scans |
| cronjob.native.failedJobsHistoryLimit | int | 10 | keep 10 jobs for log parsing (if they fail |
| cronjob.native.successfulJobHistoryLimit | int | 5 | keep 5 successful jobs for log parsing. |
| cronjob.native.image.imagePullPolicy | string | "IfNotPresent" | |
| cronjob.native.image.kubernetesVersion | string | "1.22.6" | Check alpine image for the latest available https://hub.docker.com/r/alpine/k8s/tags |
| cronjob.scan.filesystem | bool | true | Enable scanning filesystem (Folder scanning) |
| cronjob.scan.nextcloud | bool | false | Support scanning Nextcloud |
| nameOverride | string | "" | |
| fullnameOverride | string | "" | |
| securityContext.allowPrivilegeEscalation | bool | false | |
| securityContext.capabilities.add | list | [] | |
| securityContext.capabilities.drop | list | [] | |
| securityContext.privileged | bool | false | |
| securityContext.readOnlyRootFilesystem | bool | false | |
| securityContext.runAsNonRoot | bool | false | |
| httpRoute.enabled | bool | false | Enable an HTTPRoute resource for nextcloud . |
| httpRoute.apiVersion | string | "gateway.networking.k8s.io/v1" | Set the route apiVersion |
| httpRoute.kind | string | "HTTPRoute" | Set the route kind |
| httpRoute.annotations | object | {} | Route annotations |
| httpRoute.labels | object | {} | Route labels |
| httpRoute.hostnames | list | [] | Route hostnames |
| httpRoute.parentRefs | list | [] | Reference to parent gateways |
| httpRoute.rules[0].matches[0].path.type | string | "PathPrefix" | |
| httpRoute.rules[0].matches[0].path.value | string | "/" | |
| ingress.enabled | bool | false | enable ingress |
| ingress.annotations | object | {} | |
| ingress.hostname | string | "" | currently only hotsname is needed for ingress |
| ingress.tls | list | [] | Configure TLS for the ingress. Both secretName and hosts can process a Helm template. |
| dataVolume.size | string | "100Gi" | Size of the volume to be created (data) |
| dataVolume.accessModes | list | ["ReadWriteOnce"] | Access mode of volume |
| dataVolume.storageClassName | string | "" | Storage class of data volume |
| volumes[0] | object | {"emptyDir":{},"name":"shared"} | Shared volume, as emptyDir |
| volumes[1] | object | {"emptyDir":{"medium":"Memory"},"name":"temp"} | temporary folder in Memory |
| volumes[2] | object | {"emptyDir":{},"name":"varlogs"} | logs in emptyDir |
| extraVolumes | string | nil | You can define extra volumes, in the typical K8s syntax (Only in backend) |
| extraVolumeMounts | string | nil | You can define extra volume mounts, in the typical K8s syntax (Only in backend) |
| pg.override | object | {} | |
| postgresql.enabled | bool | true | install bitnami postgresql |
| postgresql.image.repository | string | "bitnamilegacy/postgresql" | |
| postgresql.auth.username | string | "librephotos" | |
| postgresql.auth.database | string | "librephotos" | |
| redis.image | object | {"repository":"bitnamilegacy/redis"} | install bitnami redis |
| redis.enabled | bool | true | |
| redis.architecture | string | "standalone" | |
| redis.master.disableCommands[0] | string | "FLUSHALL" |
Deploy librephotos with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has librephotos 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 chartlibrephotos is pinned at v1.4.0 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