Compare commits

..

No commits in common. "9bd1f0cfa1321eb9130049bd08a5a9d2654d3151" and "4900cbd21eb7fe12149f9f7cbde0205c65549b2d" have entirely different histories.

5 changed files with 2 additions and 39 deletions

View File

@ -45,7 +45,7 @@
git
vim
fastfetch
btop
htop
];
environment.variables.EDITOR = "vim";

View File

@ -74,7 +74,7 @@ in {
git
vim
fastfetch
btop
htop
speedtest-cli
];
environment.variables.EDITOR = "vim";

View File

@ -15,12 +15,6 @@
"/var/lib/acme"
"/srv"
# k8s
"/var/lib/containerd"
"/var/lib/kubernetes"
"/var/lib/kubelet"
"/var/lib/kube-proxy"
];
files = [
"/etc/machine-id"

View File

@ -7,7 +7,6 @@
./gitea.nix
./synapse.nix
./nebula.nix
./k8s.nix
];
security.acme = {

View File

@ -1,30 +0,0 @@
{pkgs, ...}: let
kMasterIp = "10.13.0.1";
kMasterHostname = "silver";
kMasterApiServerPort = 6443;
in {
networking.extraHosts = "${kMasterIp} ${kMasterHostname}";
systemd.services.etcd.preStart = ''${pkgs.writeShellScript "etcd-wait" ''
while [ ! -f /var/lib/kubernetes/secrets/etcd.pem ]; do sleep 1; done
''}'';
services.kubernetes = {
roles = ["master" "node"];
masterAddress = kMasterHostname;
apiserverAddress = "https://${kMasterHostname}:${toString kMasterApiServerPort}";
apiserver = {
securePort = kMasterApiServerPort;
advertiseAddress = kMasterIp;
};
easyCerts = true;
# use coredns
addons.dns.enable = true;
# needed if you use swap
kubelet.extraOpts = "--fail-swap-on=false";
};
}