Files
k8scd/disable/ente-photos/ente-deployment.yaml
T
2025-03-13 11:11:06 +01:00

83 lines
2.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: museum
spec:
replicas: 1
selector:
matchLabels:
app: ente
strategy:
type: Recreate
template:
metadata:
labels:
app: ente
spec:
containers:
- env:
- name: ENTE_DB_HOST
value: "helm-postgresql"
- name: ENTE_DB_PORT
value: "5432"
- name: ENTE_DB_NAME
value: "ente_db"
- name: ENTE_DB_USER
value: "pguser"
- name: ENTE_DB_PASSWORD
valueFrom:
secretKeyRef:
name: ente-photos-config
key: pgpass
- name: ENTE_S3_ARE_LOCAL_BUCKETS
value: "false"
- name: ENTE_S3_ENTE-PHOTOS_KEY
value: "ente-photos-user"
- name: ENTE_S3_ENTE-PHOTOS_SECRET
valueFrom:
secretKeyRef:
name: ente-photos-config
key: miniopass
- name: ENTE_S3_ENTE-PHOTOS_ENDPOINT
value: "minio.hensen.io:3200"
- name: ENTE_S3_ENTE-PHOTOS_REGION
value: "nl"
- name: ENTE_S3_ENTE-PHOTOS_BUCKET
value: "ente-photos"
image: ghcr.io/ente-io/server
name: museum
# command: [ "sh", "-c"]
# # loop forever, outputting "yo" every 5 seconds
# args: ["while true; do echo 'yo' && sleep 5; done;"]
ports:
- containerPort: 8080
protocol: TCP
- containerPort: 2112
protocol: TCP
volumeMounts:
- mountPath: /var/logs
name: custom-logs
- mountPath: /museum.yaml
name: museum-claim1
readOnly: true
- mountPath: /data
name: museum-claim3
readOnly: true
# - args:
# - TCP-LISTEN:3200,fork,reuseaddr
# - TCP:minio:3200
# image: alpine/socat
# name: socat
restartPolicy: Always
volumes:
- name: custom-logs
persistentVolumeClaim:
claimName: custom-logs
- name: museum-claim1
persistentVolumeClaim:
claimName: museum-claim1
readOnly: true
- name: museum-claim3
persistentVolumeClaim:
claimName: museum-claim3
readOnly: true