diff --git a/apps/k8s01/jellyfin/jellyfin-pdb-mgr/deployment.yaml b/apps/k8s01/jellyfin/jellyfin-pdb-mgr/deployment.yaml index 6e8dfb3633ba07fc3941d81b332784dcd78d9360..d639890fd072dccf86e0a451531876092fc25882 100644 --- a/apps/k8s01/jellyfin/jellyfin-pdb-mgr/deployment.yaml +++ b/apps/k8s01/jellyfin/jellyfin-pdb-mgr/deployment.yaml @@ -9,7 +9,7 @@ #!/bin/sh while true; do - if curl "http://localhost:8096/Sessions\?ApiKey\=$JELLYFIN_KEY" | jq '.[].NowPlayingItem != null' | grep 'true'; then + if curl "http://localhost:8096/Sessions?ApiKey=$JELLYFIN_KEY" | jq '.[].NowPlayingItem != null' | grep 'true'; then kubectl patch poddisruptionbudget --patch '{"spec": {"maxUnavailable": 0}}' jellyfin else kubectl patch poddisruptionbudget --patch '{"spec": {"maxUnavailable": 1}}' jellyfin