nixos/kubernetes: add missing systemd restart options

This commit is contained in:
Adam Finn Tulinius 2019-02-21 14:34:22 +01:00
parent 49d963855a
commit 291c809888
2 changed files with 4 additions and 0 deletions

View File

@ -64,6 +64,8 @@ in
${cfg.extraOpts}
'';
WorkingDirectory = top.dataDir;
Restart = "on-failure";
RestartSec = 5;
};
};

View File

@ -76,6 +76,8 @@ in
WorkingDirectory = top.dataDir;
User = "kubernetes";
Group = "kubernetes";
Restart = "on-failure";
RestartSec = 5;
};
};