42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: database
|
|
name: database
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: database
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: database
|
|
spec:
|
|
containers:
|
|
- image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
|
|
name: immich-postgres
|
|
envFrom:
|
|
- secretRef:
|
|
name: immich-secret
|
|
resources:
|
|
limits:
|
|
cpu: "0.2"
|
|
memory: "1G"
|
|
volumeMounts:
|
|
- mountPath: /var/lib/postgresql/data
|
|
name: pgdata
|
|
subPath: 22790538-185c-426e-a10f-b4cc54d02874
|
|
ports:
|
|
- name: http
|
|
containerPort: 5432
|
|
hostPort: 5432
|
|
protocol: TCP
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: pgdata
|
|
persistentVolumeClaim:
|
|
claimName: immich-pvc |