Skip to content

Commit

Permalink
feat: Remove typesense, add pgvecto.rs (#53)
Browse files Browse the repository at this point in the history
* feat: Remove typesense

* feat: Use pgvecto.rs image

* feat: initdb script to create extensions

* chore: Bump version

* chore: Update redis chart

* chore: Update postgres chart

* chore: Remove geodata-cache
  • Loading branch information
bo0tzz authored Dec 15, 2023
1 parent b205864 commit 5357c27
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 75 deletions.
10 changes: 5 additions & 5 deletions charts/immich/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
apiVersion: v2
description: A chart to power Immich (immich.app) running on kubernetes
name: immich
version: 0.2.0
appVersion: v1.88.0
version: 0.3.0
appVersion: v1.91.0
home: https://immich.app/
icon: https://raw.githubusercontent.com/immich-app/immich/main/design/immich-logo.svg
sources:
Expand All @@ -21,13 +21,13 @@ dependencies:
- name: postgresql
condition: postgresql.enabled
repository: https://charts.bitnami.com/bitnami
version: 11.8.1
version: 13.2.24
- name: redis
condition: redis.enabled
repository: https://charts.bitnami.com/bitnami
version: 17.11.6
version: 18.4.0
annotations:
artifacthub.io/category: storage
artifacthub.io/changes: |-
- kind: changed
description: Polish for better display on artifacthub
description: Remove typesense, add pgvecto.rs
39 changes: 0 additions & 39 deletions charts/immich/templates/typesense.yaml

This file was deleted.

42 changes: 11 additions & 31 deletions charts/immich/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ env:
DB_DATABASE_NAME: "{{ .Values.postgresql.global.postgresql.auth.database }}"
# -- You should provide your own secret outside of this helm-chart and use `postgresql.global.postgresql.auth.existingSecret` to provide credentials to the postgresql instance
DB_PASSWORD: "{{ .Values.postgresql.global.postgresql.auth.password }}"
TYPESENSE_ENABLED: "{{ .Values.typesense.enabled }}"
TYPESENSE_API_KEY: "{{ .Values.typesense.env.TYPESENSE_API_KEY }}"
TYPESENSE_HOST: '{{ printf "%s-typesense" .Release.Name }}'
IMMICH_MACHINE_LEARNING_URL: '{{ printf "http://%s-machine-learning:3003" .Release.Name }}'

image:
tag: v1.88.0
tag: v1.91.0

immich:
persistence:
Expand All @@ -31,36 +28,29 @@ immich:

postgresql:
enabled: false
image:
repository: tensorchord/pgvecto-rs
tag: pg14-v0.1.11
global:
postgresql:
auth:
username: immich
database: immich
password: immich
primary:
initdb:
scripts:
create-extensions.sql: |
CREATE EXTENSION cube;
CREATE EXTENSION earthdistance;
CREATE EXTENSION vectors;
redis:
enabled: false
architecture: standalone
auth:
enabled: false

typesense:
enabled: false
env:
TYPESENSE_DATA_DIR: /tsdata
TYPESENSE_API_KEY: typesense
persistence:
tsdata:
# Enabling typesense persistence is recommended to avoid slow reindexing
enabled: false
accessMode: ReadWriteOnce
size: 1Gi
# storageClass: storage-class
image:
repository: docker.io/typesense/typesense
tag: 0.24.0
pullPolicy: IfNotPresent

# Immich components

server:
Expand All @@ -83,16 +73,6 @@ server:

microservices:
enabled: true
env:
REVERSE_GEOCODING_DUMP_DIRECTORY: /geodata-cache
persistence:
geodata-cache:
enabled: true
size: 1Gi
# Optional: Set this to pvc to avoid downloading the geodata every start.
type: emptyDir
accessMode: ReadWriteMany
# storageClass: your-class
image:
repository: ghcr.io/immich-app/immich-server
pullPolicy: IfNotPresent
Expand Down

0 comments on commit 5357c27

Please sign in to comment.