Merge pull request #56152 from adamtulinius/k8s-scheduler-missing-restart

nixos/kubernetes: add missing systemd restart options
This commit is contained in:
Franz Pletz 2019-02-21 14:58:15 +00:00 committed by GitHub
commit 8ef1e4186f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
};
};