36 lines
		
	
	
		
			735 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			735 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| apiVersion: postgresql.cnpg.io/v1
 | |
| kind: Cluster
 | |
| metadata:
 | |
|   name: immich-postgres
 | |
| spec:
 | |
|   instances: 1
 | |
|   imageName: ghcr.io/tensorchord/cloudnative-pgvecto.rs:16.2
 | |
|   bootstrap:
 | |
|     initdb:
 | |
|       owner: immich
 | |
|       database: immich
 | |
|       secret:
 | |
|         name: postgres-password
 | |
| 
 | |
|   # Enable the VECTORS extension
 | |
|       postInitSQL:
 | |
|         - CREATE EXTENSION IF NOT EXISTS "vectors";
 | |
| 
 | |
|   postgresql:
 | |
|     shared_preload_libraries:
 | |
|       - "vectors.so"
 | |
| 
 | |
|   # Persistent storage configuration
 | |
|   storage:
 | |
|     size: 2Gi
 | |
|     pvcTemplate:
 | |
|       accessModes:
 | |
|         - ReadWriteOnce
 | |
|       resources:
 | |
|         requests:
 | |
|           storage: 2Gi
 | |
|       storageClassName: nfs-client
 | |
|       volumeMode: Filesystem
 | |
|   monitoring:
 | |
|     enablePodMonitor: true
 |