mirror of
https://github.com/MagicBOTAlex/nixos-server.git
synced 2026-05-25 09:22:30 +02:00
kubernetes, bare metaling
This commit is contained in:
parent
fc6edfa41b
commit
1409710022
10 changed files with 253 additions and 156 deletions
|
|
@ -1,28 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
systemd.services.kubelet = {
|
||||
description = "kubelet: The Kubernetes Node Agent";
|
||||
documentation = [ "https://kubernetes.io/docs/home/" ];
|
||||
|
||||
# Unit requirements
|
||||
wants = [ "network-online.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
# Use the kubelet binary from the Nix store
|
||||
ExecStart = "${pkgs.kubernetes}/bin/kubelet";
|
||||
|
||||
Restart = "always";
|
||||
RestartSec = 10;
|
||||
};
|
||||
|
||||
# Systemd 230+ uses StartLimitIntervalSec in the [Unit] section
|
||||
unitConfig = {
|
||||
StartLimitIntervalSec = 0;
|
||||
};
|
||||
|
||||
# Equivalent to [Install] WantedBy
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue