diff --git a/nixos/modules/services/cluster/kubernetes/proxy.nix b/nixos/modules/services/cluster/kubernetes/proxy.nix index 6bcf2eaca82a..83cd3e231000 100644 --- a/nixos/modules/services/cluster/kubernetes/proxy.nix +++ b/nixos/modules/services/cluster/kubernetes/proxy.nix @@ -64,6 +64,8 @@ in ${cfg.extraOpts} ''; WorkingDirectory = top.dataDir; + Restart = "on-failure"; + RestartSec = 5; }; }; diff --git a/nixos/modules/services/cluster/kubernetes/scheduler.nix b/nixos/modules/services/cluster/kubernetes/scheduler.nix index 655e6f8b6e20..0305b9aefe59 100644 --- a/nixos/modules/services/cluster/kubernetes/scheduler.nix +++ b/nixos/modules/services/cluster/kubernetes/scheduler.nix @@ -76,6 +76,8 @@ in WorkingDirectory = top.dataDir; User = "kubernetes"; Group = "kubernetes"; + Restart = "on-failure"; + RestartSec = 5; }; };