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

NameEmailUrl
varet80https://github.com/varet80

Source Code

Requirements

Kubernetes: >=1.16.0-0

RepositoryNameVersion
https://charts.bitnami.com/bitnamipostgresql>= 12.8.2
https://charts.bitnami.com/bitnamiredis>= 21.0.0

Values

KeyTypeDefaultDescription
backend.replicaCountint1Replica counts
backend.annotationsobject{}Annotations
backend.updateStrategyTypestring"Recreate"Using recreate strategy, as this helps to run only one container at a time
backend.image.repositorystring"reallibrephotos/librephotos"Repository and image name
backend.resources.limits.memorystring"8Gi"
backend.resources.requests.cpustring"10m"
backend.resources.requests.memorystring"50Mi"
backend.env.DEBUGstring"0"
backend.env.HEAVYWEIGHT_PROCESSstring"2"
backend.env.SKIP_PATTERNSstring""
backend.env.WEB_CONCURRENCYstring"4"
backend.env.ALLOW_UPLOADstring"false"
backend.envTemplates.redisPortstring"{{ .Values.redis.master.containerPorts.redis }}"redis port retrieved by parent helm chart
backend.envTemplates.dbNamestring"{{ default .Values.postgresql.auth.database .Values.pg.override.database }}"Postgresql DB Name
backend.envTemplates.dbPortstring"{{ default .Values.postgresql.containerPorts.postgresql .Values.pg.override.port }}"Postgresql DB port
backend.envTemplates.dbUserstring"{{ default .Values.postgresql.auth.database .Values.pg.override.user }}"Postgresql DB password
backend.envTemplates.dbBackendstring"postgresql"Database Backend type, supporting postgresql
backend.externalSecretslist[]List of external secrets to be used as Environment Variable sources
backend.externalConfigMapslist[]List of external secrets to be used as Environment Variable sources
backend.healthchecks.livenessProbe.tcpSocket.portint8001
backend.healthchecks.livenessProbe.initialDelaySecondsint10
backend.healthchecks.livenessProbe.failureThresholdint5
backend.healthchecks.livenessProbe.timeoutSecondsint5
backend.healthchecks.livenessProbe.periodSecondsint120
backend.healthchecks.readinessProbe.tcpSocket.portint8001
backend.healthchecks.readinessProbe.initialDelaySecondsint10
backend.healthchecks.readinessProbe.failureThresholdint5
backend.healthchecks.readinessProbe.timeoutSecondsint5
backend.healthchecks.readinessProbe.periodSecondsint120
backend.healthchecks.startupProbe.tcpSocket.portint8001
backend.healthchecks.startupProbe.initialDelaySecondsint10
backend.healthchecks.startupProbe.failureThresholdint60
backend.healthchecks.startupProbe.timeoutSecondsint2
backend.healthchecks.startupProbe.periodSecondsint5
frontend.podAffinity.enabledbooltrueForce pods to deploy on same node as backend
frontend.replicaCountint1
frontend.updateStrategyTypestring"RollingUpdate"
frontend.annotationsobject{}
frontend.image.repositorystring"reallibrephotos/librephotos-frontend"
frontend.healthchecks.livenessProbe.tcpSocket.portint3000
frontend.healthchecks.livenessProbe.initialDelaySecondsint10
frontend.healthchecks.livenessProbe.failureThresholdint5
frontend.healthchecks.livenessProbe.timeoutSecondsint5
frontend.healthchecks.livenessProbe.periodSecondsint120
frontend.healthchecks.readinessProbe.tcpSocket.portint3000
frontend.healthchecks.readinessProbe.initialDelaySecondsint10
frontend.healthchecks.readinessProbe.failureThresholdint5
frontend.healthchecks.readinessProbe.timeoutSecondsint5
frontend.healthchecks.readinessProbe.periodSecondsint120
frontend.healthchecks.startupProbe.tcpSocket.portint3000
frontend.healthchecks.startupProbe.initialDelaySecondsint10
frontend.healthchecks.startupProbe.failureThresholdint60
frontend.healthchecks.startupProbe.timeoutSecondsint2
frontend.healthchecks.startupProbe.periodSecondsint5
proxy.podAffinity.enabledbooltrueForce pods to deploy on same node as backend
proxy.replicaCountint1
proxy.updateStrategyTypestring"RollingUpdate"
proxy.annotationsobject{}
proxy.image.repositorystring"reallibrephotos/librephotos-proxy"
proxy.healthchecks.livenessProbe.tcpSocket.portint80
proxy.healthchecks.livenessProbe.initialDelaySecondsint10
proxy.healthchecks.livenessProbe.failureThresholdint5
proxy.healthchecks.livenessProbe.timeoutSecondsint5
proxy.healthchecks.livenessProbe.periodSecondsint60
proxy.healthchecks.readinessProbe.httpGet.pathstring"/"
proxy.healthchecks.readinessProbe.httpGet.portint80
proxy.healthchecks.readinessProbe.initialDelaySecondsint10
proxy.healthchecks.readinessProbe.failureThresholdint5
proxy.healthchecks.readinessProbe.timeoutSecondsint5
proxy.healthchecks.readinessProbe.periodSecondsint60
proxy.healthchecks.startupProbe.tcpSocket.portint80
proxy.healthchecks.startupProbe.initialDelaySecondsint10
proxy.healthchecks.startupProbe.failureThresholdint60
proxy.healthchecks.startupProbe.timeoutSecondsint2
proxy.healthchecks.startupProbe.periodSecondsint5
service.backend.typestring"ClusterIP"
service.backend.ports[0].portint80
service.backend.ports[0].targetPortint8001
service.backend.ports[0].protocolstring"TCP"
service.backend.ports[0].namestring"backend"
service.backend.annotationsobject{}
service.frontend.typestring"ClusterIP"
service.frontend.ports[0].portint80
service.frontend.ports[0].targetPortint3000
service.frontend.ports[0].protocolstring"TCP"
service.frontend.ports[0].namestring"backend"
service.frontend.annotationsobject{}
service.proxy.typestring"ClusterIP"
service.proxy.ports[0].portint80
service.proxy.ports[0].targetPortint80
service.proxy.ports[0].protocolstring"TCP"
service.proxy.ports[0].namestring"backend"
service.proxy.annotationsobject{}
secret.ADMIN_EMAILstring"[email protected]"
secret.ADMIN_USERNAMEstring"admin"
secret.ADMIN_PASSWORDstring"password"
secret.MAPBOX_API_KEYstring""
externalSecretKeyboolfalseEnable if you want to completely ignore management of external Secret Key secret creation
cronjob.typestring"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.annotationsobject{}Annotations for the cronjog
cronjob.native.schedulestring"0 * * * *"Cronjob schedule
cronjob.native.concurrencyPolicystring"Forbid"concurrency policy, Forbid as default, to avoid running two scans
cronjob.native.failedJobsHistoryLimitint10keep 10 jobs for log parsing (if they fail
cronjob.native.successfulJobHistoryLimitint5keep 5 successful jobs for log parsing.
cronjob.native.image.imagePullPolicystring"IfNotPresent"
cronjob.native.image.kubernetesVersionstring"1.22.6"Check alpine image for the latest available https://hub.docker.com/r/alpine/k8s/tags
cronjob.scan.filesystembooltrueEnable scanning filesystem (Folder scanning)
cronjob.scan.nextcloudboolfalseSupport scanning Nextcloud
nameOverridestring""
fullnameOverridestring""
securityContext.allowPrivilegeEscalationboolfalse
securityContext.capabilities.addlist[]
securityContext.capabilities.droplist[]
securityContext.privilegedboolfalse
securityContext.readOnlyRootFilesystemboolfalse
securityContext.runAsNonRootboolfalse
httpRoute.enabledboolfalseEnable an HTTPRoute resource for nextcloud .
httpRoute.apiVersionstring"gateway.networking.k8s.io/v1"Set the route apiVersion
httpRoute.kindstring"HTTPRoute"Set the route kind
httpRoute.annotationsobject{}Route annotations
httpRoute.labelsobject{}Route labels
httpRoute.hostnameslist[]Route hostnames
httpRoute.parentRefslist[]Reference to parent gateways
httpRoute.rules[0].matches[0].path.typestring"PathPrefix"
httpRoute.rules[0].matches[0].path.valuestring"/"
ingress.enabledboolfalseenable ingress
ingress.annotationsobject{}
ingress.hostnamestring""currently only hotsname is needed for ingress
ingress.tlslist[]Configure TLS for the ingress. Both secretName and hosts can process a Helm template.
dataVolume.sizestring"100Gi"Size of the volume to be created (data)
dataVolume.accessModeslist["ReadWriteOnce"]Access mode of volume
dataVolume.storageClassNamestring""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
extraVolumesstringnilYou can define extra volumes, in the typical K8s syntax (Only in backend)
extraVolumeMountsstringnilYou can define extra volume mounts, in the typical K8s syntax (Only in backend)
pg.overrideobject{}
postgresql.enabledbooltrueinstall bitnami postgresql
postgresql.image.repositorystring"bitnamilegacy/postgresql"
postgresql.auth.usernamestring"librephotos"
postgresql.auth.databasestring"librephotos"
redis.imageobject{"repository":"bitnamilegacy/redis"}install bitnami redis
redis.enabledbooltrue
redis.architecturestring"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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartlibrephotos is pinned at v1.4.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