Files
immich-sync/immich-sync.yaml
T
feedc0de 49342eaef6
Publish container image / Build and push (push) Successful in 46s
Publish container image / Deploy to Kubernetes (push) Failing after 31s
bug fixes and depliyment
2026-08-04 20:59:49 +02:00

105 lines
2.2 KiB
YAML

#apiVersion: v1
#kind: Namespace
#metadata:
# name: immich-sync
#---
apiVersion: apps/v1
kind: Deployment
metadata:
name: immich-sync
# namespace: immich-sync
spec:
replicas: 1
selector:
matchLabels:
app: immich-sync
template:
metadata:
labels:
app: immich-sync
spec:
automountServiceAccountToken: false
containers:
- name: immich-sync
image: registry.brunner.ninja/feedc0de/immich-sync:latest
imagePullPolicy: Always
env:
- name: PORT
value: "8090"
ports:
- name: http
containerPort: 8090
readinessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 1
periodSeconds: 5
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 5
periodSeconds: 15
resources:
requests:
cpu: 10m
memory: 32Mi
ephemeral-storage: 64Mi
limits:
cpu: "1"
memory: 128Mi
ephemeral-storage: 20Gi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 65532
runAsGroup: 65532
volumeMounts:
- name: tmp
mountPath: /tmp
volumes:
- name: tmp
emptyDir:
sizeLimit: 20Gi
---
apiVersion: v1
kind: Service
metadata:
name: immich-sync
# namespace: immich-sync
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: http
selector:
app: immich-sync
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: immich-sync
# namespace: immich-sync
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls.certresolver: letsencrypt
spec:
ingressClassName: traefik
rules:
- host: immich-sync.brunner.ninja
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: immich-sync
port:
name: http