jarno revidoval tento gist . Přejít na revizi
1 file changed, 2 insertions
immich.yaml
| @@ -91,6 +91,8 @@ spec: | |||
| 91 | 91 | - CAP_NET_RAW | |
| 92 | 92 | - CAP_AUDIT_WRITE | |
| 93 | 93 | volumeMounts: | |
| 94 | + | - mountPath: /usr/src/app/upload | |
| 95 | + | name: immich-data-host | |
| 94 | 96 | - mountPath: /cache | |
| 95 | 97 | name: immich-model-cache-host | |
| 96 | 98 | - mountPath: /nextcloud/nc-user | |
jarno revidoval tento gist . Přejít na revizi
1 file changed, 2 deletions
immich.yaml
| @@ -79,8 +79,6 @@ spec: | |||
| 79 | 79 | readOnly: true | |
| 80 | 80 | ||
| 81 | 81 | - name: machine-learning | |
| 82 | - | args: | |
| 83 | - | - ./start.sh | |
| 84 | 82 | image: ghcr.io/immich-app/immich-machine-learning:v1.112.1 | |
| 85 | 83 | envFrom: | |
| 86 | 84 | - configMapRef: | |
jarno revidoval tento gist . Přejít na revizi
1 file changed, 155 insertions
immich.yaml(vytvořil soubor)
| @@ -0,0 +1,155 @@ | |||
| 1 | + | apiVersion: v1 | |
| 2 | + | kind: Pod | |
| 3 | + | metadata: | |
| 4 | + | name: immich | |
| 5 | + | labels: | |
| 6 | + | app: immich | |
| 7 | + | annotations: | |
| 8 | + | spec: | |
| 9 | + | ||
| 10 | + | ## Volume definitions | |
| 11 | + | volumes: | |
| 12 | + | - hostPath: | |
| 13 | + | ## Equivalent of UPLOAD_LOCATION in docker-compose | |
| 14 | + | path: /path/to/immich/data | |
| 15 | + | type: Directory | |
| 16 | + | name: immich-data-host | |
| 17 | + | - hostPath: | |
| 18 | + | path: /path/to/immich/model-cache | |
| 19 | + | type: Directory | |
| 20 | + | name: immich-model-cache-host | |
| 21 | + | - name: immich-psql | |
| 22 | + | persistentVolumeClaim: | |
| 23 | + | claimName: immich-psql | |
| 24 | + | - hostPath: | |
| 25 | + | path: /path/to/immich/redis | |
| 26 | + | type: Directory | |
| 27 | + | name: immich-redis-host | |
| 28 | + | - hostPath: | |
| 29 | + | path: /path/to/nextcloud/app/data/nc-user/files | |
| 30 | + | type: Directory | |
| 31 | + | readOnly: true | |
| 32 | + | name: nextcloud-nc-user | |
| 33 | + | ||
| 34 | + | ## Container definitions | |
| 35 | + | containers: | |
| 36 | + | - name: server | |
| 37 | + | image: ghcr.io/immich-app/immich-server:v1.112.1 | |
| 38 | + | env: | |
| 39 | + | - name: IMMICH_WORKERS_INCLUDE | |
| 40 | + | value: api | |
| 41 | + | envFrom: | |
| 42 | + | - configMapRef: | |
| 43 | + | name: immich-config | |
| 44 | + | optional: false | |
| 45 | + | securityContext: | |
| 46 | + | capabilities: | |
| 47 | + | drop: | |
| 48 | + | - CAP_MKNOD | |
| 49 | + | - CAP_NET_RAW | |
| 50 | + | - CAP_AUDIT_WRITE | |
| 51 | + | volumeMounts: | |
| 52 | + | - mountPath: /usr/src/app/upload | |
| 53 | + | name: immich-data-host | |
| 54 | + | - mountPath: /nextcloud/nc-user | |
| 55 | + | name: nextcloud-nc-user | |
| 56 | + | readOnly: true | |
| 57 | + | ||
| 58 | + | ||
| 59 | + | - name: microservices | |
| 60 | + | image: ghcr.io/immich-app/immich-server:v1.112.1 | |
| 61 | + | env: | |
| 62 | + | - name: IMMICH_WORKERS_EXCLUDE | |
| 63 | + | value: api | |
| 64 | + | envFrom: | |
| 65 | + | - configMapRef: | |
| 66 | + | name: immich-config | |
| 67 | + | optional: false | |
| 68 | + | securityContext: | |
| 69 | + | capabilities: | |
| 70 | + | drop: | |
| 71 | + | - CAP_MKNOD | |
| 72 | + | - CAP_NET_RAW | |
| 73 | + | - CAP_AUDIT_WRITE | |
| 74 | + | volumeMounts: | |
| 75 | + | - mountPath: /usr/src/app/upload | |
| 76 | + | name: immich-data-host | |
| 77 | + | - mountPath: /nextcloud/nc-user | |
| 78 | + | name: nextcloud-nc-user | |
| 79 | + | readOnly: true | |
| 80 | + | ||
| 81 | + | - name: machine-learning | |
| 82 | + | args: | |
| 83 | + | - ./start.sh | |
| 84 | + | image: ghcr.io/immich-app/immich-machine-learning:v1.112.1 | |
| 85 | + | envFrom: | |
| 86 | + | - configMapRef: | |
| 87 | + | name: immich-config | |
| 88 | + | optional: false | |
| 89 | + | securityContext: | |
| 90 | + | capabilities: | |
| 91 | + | drop: | |
| 92 | + | - CAP_MKNOD | |
| 93 | + | - CAP_NET_RAW | |
| 94 | + | - CAP_AUDIT_WRITE | |
| 95 | + | volumeMounts: | |
| 96 | + | - mountPath: /cache | |
| 97 | + | name: immich-model-cache-host | |
| 98 | + | - mountPath: /nextcloud/nc-user | |
| 99 | + | name: nextcloud-nc-user | |
| 100 | + | readOnly: true | |
| 101 | + | ||
| 102 | + | - name: psql | |
| 103 | + | image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0 | |
| 104 | + | resource: {} | |
| 105 | + | securityContext: | |
| 106 | + | capabilities: | |
| 107 | + | drop: | |
| 108 | + | - CAP_MKNOD | |
| 109 | + | - CAP_NET_RAW | |
| 110 | + | - CAP_AUDIT_WRITE | |
| 111 | + | volumeMounts: | |
| 112 | + | - mountPath: /var/lib/postgresql/data | |
| 113 | + | name: immich-psql | |
| 114 | + | env: | |
| 115 | + | - name: POSTGRES_USER | |
| 116 | + | valueFrom: | |
| 117 | + | configMapKeyRef: | |
| 118 | + | name: immich-config | |
| 119 | + | key: DB_USERNAME | |
| 120 | + | - name: POSTGRES_PASSWORD | |
| 121 | + | valueFrom: | |
| 122 | + | configMapKeyRef: | |
| 123 | + | name: immich-config | |
| 124 | + | key: DB_PASSWORD | |
| 125 | + | - name: POSTGRES_DB | |
| 126 | + | valueFrom: | |
| 127 | + | configMapKeyRef: | |
| 128 | + | name: immich-config | |
| 129 | + | key: DB_DATABASE_NAME | |
| 130 | + | - name: POSTGRES_INITDB_ARGS | |
| 131 | + | value: "--data-checksums" | |
| 132 | + | args: ["-c" ,"shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"] | |
| 133 | + | ||
| 134 | + | - name: redis | |
| 135 | + | image: docker.io/library/redis:6.2-alpine | |
| 136 | + | args: | |
| 137 | + | - redis-server | |
| 138 | + | - --save | |
| 139 | + | - 60 | |
| 140 | + | - 1 | |
| 141 | + | - --loglevel | |
| 142 | + | - warning | |
| 143 | + | resources: {} | |
| 144 | + | securityContext: | |
| 145 | + | capabilities: | |
| 146 | + | drop: | |
| 147 | + | - CAP_MKNOD | |
| 148 | + | - CAP_NET_RAW | |
| 149 | + | - CAP_AUDIT_WRITE | |
| 150 | + | volumeMounts: | |
| 151 | + | - mountPath: /data | |
| 152 | + | name: immich-redis-host | |
| 153 | + | ||
| 154 | + | restartPolicy: Always | |
| 155 | + | status: {} | |