chore: Sync cluster data.
This commit is contained in:
parent
7e886e16c6
commit
e18821eacd
10 changed files with 109 additions and 38 deletions
|
@ -7,7 +7,7 @@ mode = helm
|
||||||
depends_on = traefik:longhorn_storage_class
|
depends_on = traefik:longhorn_storage_class
|
||||||
|
|
||||||
[#forgejo/helm]
|
[#forgejo/helm]
|
||||||
mode = install
|
mode = upgrade
|
||||||
name = forgejo-personal
|
name = forgejo-personal
|
||||||
repo = oci://code.forgejo.org/forgejo-helm/forgejo
|
repo = oci://code.forgejo.org/forgejo-helm/forgejo
|
||||||
options_file = forgejo.yml
|
options_file = forgejo.yml
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
env:
|
||||||
|
DB_HOSTNAME: "postgres-postgresql"
|
||||||
|
|
||||||
immich:
|
immich:
|
||||||
persistence:
|
persistence:
|
||||||
library:
|
library:
|
||||||
|
@ -14,11 +17,7 @@ redis:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: true
|
enabled: false
|
||||||
primary:
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: 1024Mi
|
|
||||||
|
|
||||||
server:
|
server:
|
||||||
ingress:
|
ingress:
|
||||||
|
@ -26,4 +25,4 @@ server:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
image:
|
image:
|
||||||
tag: v1.121.0
|
tag: v1.123.0
|
34
kubernetes/services/immich/immich/project.ini
Normal file
34
kubernetes/services/immich/immich/project.ini
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[meta]
|
||||||
|
format_ver = 1
|
||||||
|
|
||||||
|
[immich_real_pvc]
|
||||||
|
description = Immich PVC
|
||||||
|
mode = k3s
|
||||||
|
depends_on = immich_postgres
|
||||||
|
|
||||||
|
[#immich_real_pvc/k3s]
|
||||||
|
mode = install
|
||||||
|
yml_path = ./pvc.yml
|
||||||
|
|
||||||
|
[immich_real_repo]
|
||||||
|
description = Immich Helm Repository
|
||||||
|
mode = helm
|
||||||
|
depends_on = immich_real_pvc
|
||||||
|
|
||||||
|
[#immich_real_repo/helm]
|
||||||
|
mode = add_repo
|
||||||
|
name = immich
|
||||||
|
repo = https://immich-app.github.io/immich-charts
|
||||||
|
|
||||||
|
[immich]
|
||||||
|
description = Immich Software
|
||||||
|
mode = helm
|
||||||
|
depends_on = immich_real_repo
|
||||||
|
|
||||||
|
[#immich/helm]
|
||||||
|
mode = upgrade
|
||||||
|
name = immich
|
||||||
|
repo = immich/immich
|
||||||
|
variable_file = ../../../secrets/immich.env
|
||||||
|
options_file = ./immich.yml
|
||||||
|
namespace = immich
|
26
kubernetes/services/immich/postgres/postgres.yml
Normal file
26
kubernetes/services/immich/postgres/postgres.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
image:
|
||||||
|
repository: tensorchord/pgvecto-rs
|
||||||
|
tag: pg14-v0.2.0
|
||||||
|
global:
|
||||||
|
security:
|
||||||
|
allowInsecureImages: true
|
||||||
|
postgresql:
|
||||||
|
auth:
|
||||||
|
username: immich
|
||||||
|
database: immich
|
||||||
|
password: immich
|
||||||
|
primary:
|
||||||
|
containerSecurityContext:
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
existingClaim: data-immich-postgresql-0
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 1024Mi
|
||||||
|
initdb:
|
||||||
|
scripts:
|
||||||
|
create-extensions.sql: |
|
||||||
|
CREATE EXTENSION cube;
|
||||||
|
CREATE EXTENSION earthdistance;
|
||||||
|
CREATE EXTENSION vectors;
|
21
kubernetes/services/immich/postgres/project.ini
Normal file
21
kubernetes/services/immich/postgres/project.ini
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
[meta]
|
||||||
|
format_ver = 1
|
||||||
|
|
||||||
|
[immich_postgres_pvc]
|
||||||
|
description = PVC claim for Postgres
|
||||||
|
mode = k3s
|
||||||
|
|
||||||
|
[#immich_postgres_pvc/k3s]
|
||||||
|
mode = install
|
||||||
|
yml_path = ./pvc.yml
|
||||||
|
|
||||||
|
[immich_postgres]
|
||||||
|
description = Postgres configuration for Immich
|
||||||
|
mode = helm
|
||||||
|
|
||||||
|
[#immich_postgres/helm]
|
||||||
|
mode = upgrade
|
||||||
|
name = postgres
|
||||||
|
repo = oci://registry-1.docker.io/bitnamicharts/postgresql
|
||||||
|
options_file = ./postgres.yml
|
||||||
|
namespace = immich
|
12
kubernetes/services/immich/postgres/pvc.yml
Normal file
12
kubernetes/services/immich/postgres/pvc.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: data-immich-postgresql-0
|
||||||
|
namespace: immich
|
||||||
|
spec:
|
||||||
|
storageClassName: longhorn
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 16Gi
|
|
@ -2,7 +2,7 @@
|
||||||
format_ver = 1
|
format_ver = 1
|
||||||
|
|
||||||
[immich_namespace]
|
[immich_namespace]
|
||||||
description = Immich Namespace
|
description = Namespace for Immich to reside in
|
||||||
mode = k3s
|
mode = k3s
|
||||||
depends_on = traefik:nfs_provisioner
|
depends_on = traefik:nfs_provisioner
|
||||||
|
|
||||||
|
@ -10,34 +10,10 @@ depends_on = traefik:nfs_provisioner
|
||||||
mode = install
|
mode = install
|
||||||
yml_path = ./namespace.yml
|
yml_path = ./namespace.yml
|
||||||
|
|
||||||
[immich_pvc]
|
[immich_db]
|
||||||
description = Immich PVC
|
mode = include
|
||||||
mode = k3s
|
path = ./postgres/project.ini
|
||||||
depends_on = immich_namespace
|
|
||||||
|
|
||||||
[#immich_pvc/k3s]
|
[immich_real]
|
||||||
mode = install
|
mode = include
|
||||||
yml_path = ./pvc.yml
|
path = ./immich/project.ini
|
||||||
|
|
||||||
[immich_repo]
|
|
||||||
description = Immich Helm Repository
|
|
||||||
mode = helm
|
|
||||||
depends_on = immich_pvc
|
|
||||||
|
|
||||||
[#immich_repo/helm]
|
|
||||||
mode = add_repo
|
|
||||||
name = immich
|
|
||||||
repo = https://immich-app.github.io/immich-charts
|
|
||||||
|
|
||||||
[immich]
|
|
||||||
description = Immich Software
|
|
||||||
mode = helm
|
|
||||||
depends_on = immich_repo
|
|
||||||
|
|
||||||
[#immich/helm]
|
|
||||||
mode = upgrade
|
|
||||||
name = immich
|
|
||||||
repo = immich/immich
|
|
||||||
variable_file = ../../secrets/immich.env
|
|
||||||
options_file = ./immich.yml
|
|
||||||
namespace = immich
|
|
||||||
|
|
2
kubernetes/storage/longhorn/longhorn.yml
Normal file
2
kubernetes/storage/longhorn/longhorn.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
defaultSettings:
|
||||||
|
taintToleration: node-role.kubernetes.io/master=true:NoSchedule
|
|
@ -18,6 +18,7 @@ mode = install
|
||||||
name = longhorn
|
name = longhorn
|
||||||
repo = longhorn/longhorn
|
repo = longhorn/longhorn
|
||||||
namespace = longhorn-system
|
namespace = longhorn-system
|
||||||
|
options_file = longhorn.yml
|
||||||
create_namespace = true
|
create_namespace = true
|
||||||
|
|
||||||
[longhorn_storage_class]
|
[longhorn_storage_class]
|
||||||
|
|
Reference in a new issue