From b656ad9b453894e1783eb46aae21c47de48cdff7 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sat, 21 Jun 2025 20:46:30 +0200 Subject: [PATCH] Replace RollingUpdate with Recreate --- modules/attic.nix | 9 +----- modules/atuin.nix | 10 +----- modules/forgejo/default.nix | 10 +----- modules/freshrss.nix | 10 +----- modules/hedgedoc.nix | 18 ++--------- modules/immich.nix | 36 +++------------------ modules/kitchenowl.nix | 9 +----- modules/mealie.nix | 10 +----- modules/media.nix | 63 +++++-------------------------------- modules/nextcloud.nix | 18 ++--------- modules/ntfy.nix | 10 +----- modules/paperless.nix | 27 ++-------------- modules/radicale.nix | 10 +----- modules/syncthing.nix | 10 +----- 14 files changed, 27 insertions(+), 223 deletions(-) diff --git a/modules/attic.nix b/modules/attic.nix index b67ace0..9001bcb 100644 --- a/modules/attic.nix +++ b/modules/attic.nix @@ -24,14 +24,7 @@ component = "website"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { diff --git a/modules/atuin.nix b/modules/atuin.nix index 685ae56..d15f1c3 100644 --- a/modules/atuin.nix +++ b/modules/atuin.nix @@ -16,15 +16,7 @@ deployments.server.spec = { selector.matchLabels.app = "atuin"; - - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels.app = "atuin"; diff --git a/modules/forgejo/default.nix b/modules/forgejo/default.nix index 0e3f3fd..37d40df 100644 --- a/modules/forgejo/default.nix +++ b/modules/forgejo/default.nix @@ -12,15 +12,7 @@ deployments.server.spec = { selector.matchLabels.app = "forgejo"; - - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels.app = "forgejo"; diff --git a/modules/freshrss.nix b/modules/freshrss.nix index 9b8c851..e0c1c17 100644 --- a/modules/freshrss.nix +++ b/modules/freshrss.nix @@ -12,15 +12,7 @@ deployments.server.spec = { selector.matchLabels.app = "freshrss"; - - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels.app = "freshrss"; diff --git a/modules/hedgedoc.nix b/modules/hedgedoc.nix index 9fa0513..cd7b103 100644 --- a/modules/hedgedoc.nix +++ b/modules/hedgedoc.nix @@ -25,14 +25,7 @@ component = "website"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { @@ -114,14 +107,7 @@ component = "database"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { diff --git a/modules/immich.nix b/modules/immich.nix index 81700d4..abea451 100644 --- a/modules/immich.nix +++ b/modules/immich.nix @@ -17,14 +17,7 @@ component = "server"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { @@ -78,14 +71,7 @@ component = "machine-learning"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { @@ -122,14 +108,7 @@ component = "redis"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { @@ -153,14 +132,7 @@ component = "database"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { diff --git a/modules/kitchenowl.nix b/modules/kitchenowl.nix index 9e01de4..6b8ae5d 100644 --- a/modules/kitchenowl.nix +++ b/modules/kitchenowl.nix @@ -13,14 +13,7 @@ deployments.server.spec = { selector.matchLabels.app = "kitchenowl"; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels.app = "kitchenowl"; diff --git a/modules/mealie.nix b/modules/mealie.nix index 8e559f6..7265c7c 100644 --- a/modules/mealie.nix +++ b/modules/mealie.nix @@ -10,15 +10,7 @@ kubernetes.resources = { deployments.mealie.spec = { selector.matchLabels.app = "mealie"; - - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels.app = "mealie"; diff --git a/modules/media.nix b/modules/media.nix index 248991c..20bcd6b 100644 --- a/modules/media.nix +++ b/modules/media.nix @@ -28,14 +28,7 @@ in { component = "jellyfin"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { @@ -106,14 +99,7 @@ in { component = "deluge"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { @@ -175,14 +161,7 @@ in { component = "jellyseerr"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { @@ -227,14 +206,7 @@ in { component = "radarr"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { @@ -291,14 +263,7 @@ in { component = "prowlarr"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { @@ -344,14 +309,7 @@ in { component = "sonarr"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { @@ -408,14 +366,7 @@ in { component = "bazarr"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { diff --git a/modules/nextcloud.nix b/modules/nextcloud.nix index fa73438..96b72b5 100644 --- a/modules/nextcloud.nix +++ b/modules/nextcloud.nix @@ -17,14 +17,7 @@ component = "server"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { @@ -90,14 +83,7 @@ component = "database"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { diff --git a/modules/ntfy.nix b/modules/ntfy.nix index 64171ef..d87dedb 100644 --- a/modules/ntfy.nix +++ b/modules/ntfy.nix @@ -10,15 +10,7 @@ kubernetes.resources = { deployments.ntfy.spec = { selector.matchLabels.app = "ntfy"; - - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels.app = "ntfy"; diff --git a/modules/paperless.nix b/modules/paperless.nix index aea76f1..f6a59f2 100644 --- a/modules/paperless.nix +++ b/modules/paperless.nix @@ -20,14 +20,7 @@ component = "web"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { @@ -115,14 +108,7 @@ component = "redis"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { @@ -165,14 +151,7 @@ component = "database"; }; - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels = { diff --git a/modules/radicale.nix b/modules/radicale.nix index c1adcc9..c4752c7 100644 --- a/modules/radicale.nix +++ b/modules/radicale.nix @@ -11,15 +11,7 @@ kubernetes.resources = { deployments.server.spec = { selector.matchLabels.app = "radicale"; - - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels.app = "radicale"; diff --git a/modules/syncthing.nix b/modules/syncthing.nix index 6aeb3f0..13b49e2 100644 --- a/modules/syncthing.nix +++ b/modules/syncthing.nix @@ -10,15 +10,7 @@ kubernetes.resources = { deployments.syncthing.spec = { selector.matchLabels.app = "syncthing"; - - strategy = { - type = "RollingUpdate"; - - rollingUpdate = { - maxSurge = 0; - maxUnavailable = 1; - }; - }; + strategy.type = "Recreate"; template = { metadata.labels.app = "syncthing";