Kubernetes: added multiple microservices
- added minio object storage - added immich photo viewer - added cloudnative-pg postgres operator for db management - added cronjobs to run different maintenance tasks - updated readme
This commit is contained in:
31
kubernetes/immich/persistence.yaml
Normal file
31
kubernetes/immich/persistence.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: immich-library-pv
|
||||
labels:
|
||||
app: local
|
||||
spec:
|
||||
capacity:
|
||||
storage: 900Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
nfs:
|
||||
path: /media/immich # Path to your NFS share
|
||||
server: "${NFS_SERVER}" # IP of your NFS server (replace with correct IP)
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: manual
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: immich-library
|
||||
spec:
|
||||
storageClassName: manual
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 900Gi
|
||||
selector:
|
||||
matchLabels:
|
||||
app: local
|
||||
89
kubernetes/immich/values.yaml
Normal file
89
kubernetes/immich/values.yaml
Normal file
@ -0,0 +1,89 @@
|
||||
## This chart relies on the common library chart from bjw-s
|
||||
## You can find it at https://github.com/bjw-s-labs/helm-charts/tree/923ef40a39520979c98f354ea23963ee54f54433/charts/library/common
|
||||
## Refer there for more detail about the supported values
|
||||
|
||||
# These entries are shared between all the Immich components
|
||||
|
||||
env:
|
||||
# REDIS_HOSTNAME: '{{ printf "%s-redis-master" .Release.Name }}'
|
||||
DB_HOSTNAME: pg-backup-rw.immich.svc.cluster.local
|
||||
DB_USERNAME: placeholder
|
||||
DB_DATABASE_NAME: immich
|
||||
# -- 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: placeholder
|
||||
IMMICH_IGNORE_MOUNT_CHECK_ERRORS: "true"
|
||||
# IMMICH_MACHINE_LEARNING_URL: '{{ printf "http://%s-machine-learning:3003" .Release.Name }}'
|
||||
|
||||
image:
|
||||
tag: v1.119.0
|
||||
|
||||
immich:
|
||||
metrics:
|
||||
# Enabling this will create the service monitors needed to monitor immich with the prometheus operator
|
||||
enabled: false
|
||||
persistence:
|
||||
# Main data store for all photos shared between different components.
|
||||
library:
|
||||
# Automatically creating the library volume is not supported by this chart
|
||||
# You have to specify an existing PVC to use
|
||||
existingClaim: immich-library
|
||||
# configuration is immich-config.json converted to yaml
|
||||
# ref: https://immich.app/docs/install/config-file/
|
||||
#
|
||||
configuration:
|
||||
trash:
|
||||
enabled: true
|
||||
days: 30
|
||||
storageTemplate:
|
||||
enabled: true
|
||||
template: "{{y}}/{{y}}-{{MM}}-{{dd}}/{{filename}}"
|
||||
|
||||
# Dependencies
|
||||
|
||||
# DEPRECATED
|
||||
# The postgres subchart is deprecated and will be removed in chart version 0.10.0
|
||||
# See https://github.com/immich-app/immich-charts/issues/149 for more detail.
|
||||
postgresql:
|
||||
enabled: false
|
||||
|
||||
redis:
|
||||
enabled: true
|
||||
architecture: standalone
|
||||
auth:
|
||||
enabled: false
|
||||
|
||||
# Immich components
|
||||
server:
|
||||
enabled: true
|
||||
image:
|
||||
repository: ghcr.io/immich-app/immich-server
|
||||
pullPolicy: IfNotPresent
|
||||
ingress:
|
||||
main:
|
||||
enabled: true
|
||||
annotations:
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||
cert-manager.io/issuer: "letsencrypt-prod"
|
||||
hosts:
|
||||
- host: placeholder.immich.app
|
||||
paths:
|
||||
- path: "/"
|
||||
tls:
|
||||
- secretName: immich-tls
|
||||
hosts:
|
||||
- placeholder.immich.app
|
||||
|
||||
machine-learning:
|
||||
enabled: false # disabled due to resource constraints
|
||||
image:
|
||||
repository: ghcr.io/immich-app/immich-machine-learning
|
||||
pullPolicy: IfNotPresent
|
||||
env:
|
||||
TRANSFORMERS_CACHE: /cache
|
||||
persistence:
|
||||
cache:
|
||||
enabled: true
|
||||
size: 10Gi
|
||||
# Optional: Set this to pvc to avoid downloading the ML models every start.
|
||||
type: pvc
|
||||
accessMode: ReadWriteMany
|
||||
Reference in New Issue
Block a user