40 lines
		
	
	
		
			820 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			820 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
apiVersion: postgresql.cnpg.io/v1
 | 
						|
kind: Cluster
 | 
						|
metadata:
 | 
						|
  name: immich-postgresql
 | 
						|
spec:
 | 
						|
  instances: 1
 | 
						|
  imageName: ghcr.io/tensorchord/cloudnative-vectorchord:16-0.3.0
 | 
						|
 | 
						|
  bootstrap:
 | 
						|
    initdb:
 | 
						|
      owner: immich
 | 
						|
      database: immich
 | 
						|
      secret:
 | 
						|
        name: postgres-password
 | 
						|
      dataChecksums: true
 | 
						|
      postInitApplicationSQL:
 | 
						|
        - ALTER USER immich WITH SUPERUSER;
 | 
						|
        - CREATE EXTENSION IF NOT EXISTS vchord CASCADE;
 | 
						|
        - CREATE EXTENSION IF NOT EXISTS "cube";
 | 
						|
        - CREATE EXTENSION IF NOT EXISTS "earthdistance";
 | 
						|
 | 
						|
  postgresql:
 | 
						|
    shared_preload_libraries:
 | 
						|
      - "vchord.so"
 | 
						|
 | 
						|
  storage:
 | 
						|
    size: 5Gi
 | 
						|
    storageClass: nfs-client
 | 
						|
 | 
						|
  monitoring:
 | 
						|
    enablePodMonitor: true
 | 
						|
 | 
						|
  resources:
 | 
						|
    limits:
 | 
						|
      cpu: '2'
 | 
						|
      memory: 1Gi
 | 
						|
    requests:
 | 
						|
      cpu: 50m
 | 
						|
      memory: 512Mi
 |