Manage a PodDisruptionBudget based on a actively streaming Jellyfin server.
| .woodpecker | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Containerfile | ||
| LICENSE.md | ||
| Makefile | ||
| README.md | ||
| renovate.json | ||
jellyfin-pdb-mgr-rs
jellyfin-db-pgr watches a Jellyfin server for actively playing items and updates a Kubernetes PodDisruptionBudget to prevent server shutdowns.
How?
Deploy jellyfin-pdb-mgr to your cluster (only one replica is needed) and set the following environment variables:
POD_NAMESPACE- the namespace the pod runs in. You should usevalueFrom.fieldRef.fieldPath: metadata.namespacefor this.RUST_LOG(optional) - the log level (i.e.info,debug,,warn,error)UPDATE_INTERVAL- how often in seconds to check for players and to patch the PDB. The default value is10.PDB_NAME- the name of the PBB object in the same namespace as the pod to update. You need to create this PDB yourself.JELLYFIN_URL- the URL to your Jellyfin instance.JELLYFIN_API_KEY- the Jellyfin API key to use.MIN_STREAMS- the minimum number of now playing items to consider when updating the PDB. Default is 1.
License
See LICENSE.md.