Files
2025-10-27 09:44:37 +01:00

66 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: immich-exporter
namespace: immich
annotations:
reloader.stakater.com/auto: 'true'
labels:
app: immich-exporter
spec:
replicas: 1
selector:
matchLabels:
app: immich-exporter
template:
metadata:
labels:
app: immich-exporter
spec:
automountServiceAccountToken: false
containers:
- name: immich-exporter
# https://github.com/friendlyFriend4000/prometheus-immich-exporter
image: friendlyfriend/prometheus-immich-exporter:1.2.3 # {"$imagepolicy": "immich:immich-exporter"}
imagePullPolicy: IfNotPresent
resources:
limits:
memory: 100Mi
requests:
memory: 25Mi
cpu: 1m
ports:
- name: http
containerPort: 8000
protocol: TCP
env:
- name: TZ
value: 'Europe/Berlin'
envFrom:
- configMapRef:
name: immich-exporter
optional: false
- secretRef:
name: immich-exporter
optional: false
securityContext:
privileged: false
seccompProfile:
type: 'RuntimeDefault'
livenessProbe:
httpGet:
path: /metrics
port: http
initialDelaySeconds: 10
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /metrics
port: http
initialDelaySeconds: 5
periodSeconds: 15
timeoutSeconds: 5
failureThreshold: 3