Sign inSign up

xomoxcc/flickr-immich-k8s-sync-operator

By xomoxcc

Updated 7 months ago

Image
0

2.2K

xomoxcc/flickr-immich-k8s-sync-operator repository overview

black-lint mypy and pytests Cumulative Clones PyPI Downloads

Gemini_Generated_Image_gwjk7ggwjk7ggwjk_250x250.png

flickr-immich-k8s-sync-operator

Kubernetes operator that watches per-user Flickr download Jobs in a namespace, restarts failed Jobs after a configurable delay, and retrieves pod logs and exit codes for failed Jobs before restarting them. Designed to run alongside Immich (self-hosted photo management).

Screenshots

Operator startup with configuration overview

Operator monitoring jobs across multiple check cycles

Operator detecting failures and scheduling restarts

Features

  • Monitors configured Kubernetes Jobs for failure conditions
  • Retrieves pod logs and exit codes before restarting
  • Configurable check interval and restart delay
  • Clean signal handling (SIGTERM/SIGINT) for graceful container shutdown
  • OOMKilled-aware restart logic — skips the restart delay when pods are killed by OOM
  • Structured logging via loguru

Quick start

docker run --rm xomoxcc/flickr-immich-k8s-sync-operator:latest

Configuration

VariableDescriptionDefault
LOGURU_LEVELLog verbosity (DEBUG, INFO, WARNING, ...)DEBUG
NAMESPACENamespace to watchflickr-downloader
JOB_NAMESComma-separated Job names to monitor (required)--
CHECK_INTERVALSeconds between check cycles60
RESTART_DELAYSeconds to wait after failure before restart3600
SKIP_DELAY_ON_OOMSkip restart delay when failure reason is OOMKilledfalse

Kubernetes Deployment

The operator runs as a single-replica Deployment with a namespace-scoped ServiceAccount. See the README for full RBAC and Deployment manifests.

Image details

  • Base: python:3.14-slim-trixie
  • Non-root user (pythonuser)
  • Entrypoint: tini -- with flickr-immich-k8s-sync-operator as default CMD
  • Multi-arch: linux/amd64, linux/arm64

Tag summary

Content type

Image

Digest

sha256:62e234956

Size

122.3 MB

Last updated

7 months ago

docker pull xomoxcc/flickr-immich-k8s-sync-operator