summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdam Finn Tulinius <atu@dbc.dk>2019-02-21 14:34:22 +0100
committerAdam Finn Tulinius <atu@dbc.dk>2019-02-21 14:57:57 +0100
commit291c80988801b4c7a59e722762a1993b70f707c7 (patch)
treefa51b367787b8b51cb23362a6bf891edf571be50
parent49d963855abe393a57f7778e08f08bfe299f0299 (diff)
downloadnixpkgs-291c80988801b4c7a59e722762a1993b70f707c7.tar
nixpkgs-291c80988801b4c7a59e722762a1993b70f707c7.tar.gz
nixpkgs-291c80988801b4c7a59e722762a1993b70f707c7.tar.bz2
nixpkgs-291c80988801b4c7a59e722762a1993b70f707c7.tar.lz
nixpkgs-291c80988801b4c7a59e722762a1993b70f707c7.tar.xz
nixpkgs-291c80988801b4c7a59e722762a1993b70f707c7.tar.zst
nixpkgs-291c80988801b4c7a59e722762a1993b70f707c7.zip
nixos/kubernetes: add missing systemd restart options
-rw-r--r--nixos/modules/services/cluster/kubernetes/proxy.nix2
-rw-r--r--nixos/modules/services/cluster/kubernetes/scheduler.nix2
2 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/cluster/kubernetes/proxy.nix b/nixos/modules/services/cluster/kubernetes/proxy.nix
index 6bcf2eaca82..83cd3e23100 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 655e6f8b6e2..0305b9aefe5 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;
       };
     };