From df1a3f48e035eab07a3fe5e856027fbe82837f5c Mon Sep 17 00:00:00 2001 From: Ryan Holt Date: Tue, 1 Dec 2020 08:38:22 -0500 Subject: [PATCH] various changes per @onedr0p comments Signed-off-by: Ryan Holt --- charts/photoprism/Chart.yaml | 2 +- charts/photoprism/README.md | 17 +++-------------- charts/photoprism/values.yaml | 24 ++++++------------------ 3 files changed, 10 insertions(+), 33 deletions(-) diff --git a/charts/photoprism/Chart.yaml b/charts/photoprism/Chart.yaml index 0194a80e..9c190cd4 100644 --- a/charts/photoprism/Chart.yaml +++ b/charts/photoprism/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 -appVersion: master +appVersion: 20201122 description: PhotoPrism® is a server-based application for browsing, organizing and sharing your personal photo collection name: photoprism version: 1.0.0 diff --git a/charts/photoprism/README.md b/charts/photoprism/README.md index 0322725b..375b1133 100644 --- a/charts/photoprism/README.md +++ b/charts/photoprism/README.md @@ -10,7 +10,7 @@ This chart requires heavy customization of the `env: {}` block within values.yam ```shell $ helm repo add k8s-at-home https://k8s-at-home.com/charts/ -$ helm install k8s-at-home/sonarr +$ helm install k8s-at-home/photoprism ``` ## Installing the Chart @@ -40,12 +40,12 @@ Specify each parameter using the `--set key=value[,key=value]` argument to `helm ```console helm install photoprism \ --set env.TZ="America/New_York" \ - k8s-at-home/sonarr + k8s-at-home/photoprism ``` Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example, ```console -helm install sonarr k8s-at-home/photoprism --values values.yaml +helm install photoprism k8s-at-home/photoprism --values values.yaml ``` ```yaml @@ -67,14 +67,3 @@ it may be because you uninstalled the chart with `skipuninstall` enabled, you ne ## Upgrading an existing Release to a new major version A major chart version change (like 4.0.1 -> 5.0.0) indicates that there is an incompatible breaking change potentially needing manual actions. - -### Upgrading from 6.x.x to 7.x.x - -Due to migrating to a centralized common library some values in `values.yaml` have changed. - -Examples: - -* `service.port` has been moved to `service.port.port`. -* `persistence.type` has been moved to `controllerType`. - -Refer to the library values.yaml for more configuration options. diff --git a/charts/photoprism/values.yaml b/charts/photoprism/values.yaml index 44f2ada9..0858c9d5 100644 --- a/charts/photoprism/values.yaml +++ b/charts/photoprism/values.yaml @@ -17,30 +17,12 @@ env: {} # PHOTOPRISM_DEBUG: "false" # Run in debug mode (shows additional log messages) # PHOTOPRISM_PUBLIC: "false" # No authentication required (disables password protection) # PHOTOPRISM_READONLY: "false" # Don't modify originals directory (reduced functionality) - # PHOTOPRISM_UPLOAD_NSFW: "true" # Allow uploads that MAY be offensive - # PHOTOPRISM_DETECT_NSFW: "false" # Flag photos as private that MAY be offensive # PHOTOPRISM_EXPERIMENTAL: "false" # Enable experimental features # PHOTOPRISM_SITE_URL: "http://localhost:2342/" # Canonical / public site URL # PHOTOPRISM_SITE_TITLE: "PhotoPrism" # PHOTOPRISM_SITE_CAPTION: "Browse Your Life" # PHOTOPRISM_SITE_DESCRIPTION: "" # PHOTOPRISM_SITE_AUTHOR: "" - # PHOTOPRISM_HTTP_HOST: "0.0.0.0" - # PHOTOPRISM_HTTP_PORT: 2342 - # PHOTOPRISM_SETTINGS_HIDDEN: "false" # Users can not view or change settings - # PHOTOPRISM_DATABASE_DRIVER: "sqlite" # SQLite is an embedded database that doesn't require a server - # PHOTOPRISM_DATABASE_DRIVER: "mysql" # Use MariaDB (or MySQL) instead of SQLite for improved performance - # PHOTOPRISM_DATABASE_DSN: "photoprism:insecure@tcp(mariadb:3306)/photoprism?charset=utf8mb4,utf8&parseTime=true" - # PHOTOPRISM_SIDECAR_JSON: "true" # Automatically create JSON sidecar files using Exiftool - # PHOTOPRISM_SIDECAR_YAML: "true" # Automatically backup metadata to YAML sidecar files - # PHOTOPRISM_THUMB_FILTER: "lanczos" # Resample filter, best to worst: blackman, lanczos, cubic, linear - # PHOTOPRISM_THUMB_UNCACHED: "false" # Enable on-demand thumbnail rendering (high memory and cpu usage) - # PHOTOPRISM_THUMB_SIZE: 2048 # Pre-rendered thumbnail size limit (default 2048, min 720, max 7680) - # # PHOTOPRISM_THUMB_SIZE: 4096 # Retina 4K, DCI 4K (requires more storage); 7680 for 8K Ultra HD - # PHOTOPRISM_THUMB_SIZE_UNCACHED: 7680 # On-demand rendering size limit (default 7680, min 720, max 7680) - # PHOTOPRISM_JPEG_SIZE: 7680 # Size limit for converted image files in pixels (720-30000) - # PHOTOPRISM_JPEG_QUALITY: 92 # Set to 95 for high-quality thumbnails (25-100) - # PHOTOPRISM_DARKTABLE_PRESETS: "false" # Use darktable presets (disables concurrent raw to jpeg conversion) # # You may optionally set user, group and/or file permissions using environment variables: # UID: 1000 # GID: 1000 @@ -52,6 +34,12 @@ persistence: emptyDir: false mountPath: /photoprism/storage + originals: + enabled: false + emptyDir: false + mountPath: "/photoprism/originals" + # readOnly: true + # additionalVolumeMounts: # - name: originals # mountPath: "/photoprism/originals"