Some checks failed
Terraform Plan / Terraform Plan (push) Failing after 9s
Provision 3 thin control planes and 3 workers with role-specific sizing and VMID ranges (701/711), generate per-node cloud-init snippets with SSH key injection, and add NixOS kubeadm host/module scaffolding for cp-1..3 and wk-1..3.
36 lines
642 B
Nix
36 lines
642 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
boot.kernelModules = [ "overlay" "br_netfilter" ];
|
|
|
|
boot.kernel.sysctl = {
|
|
"net.ipv4.ip_forward" = 1;
|
|
"net.bridge.bridge-nf-call-iptables" = 1;
|
|
"net.bridge.bridge-nf-call-ip6tables" = 1;
|
|
};
|
|
|
|
virtualisation.containerd.enable = true;
|
|
|
|
services.openssh.enable = true;
|
|
services.openssh.settings = {
|
|
PasswordAuthentication = false;
|
|
KbdInteractiveAuthentication = false;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
containerd
|
|
cri-tools
|
|
cni-plugins
|
|
kubernetes
|
|
kubectl
|
|
kubernetes-helm
|
|
conntrack-tools
|
|
socat
|
|
ethtool
|
|
ipvsadm
|
|
jq
|
|
curl
|
|
vim
|
|
];
|
|
}
|