generation 501 25.11.20250714.62e0f05

This commit is contained in:
2025-08-24 05:09:47 -04:00
parent dead3f290b
commit 76b60655e4

View File

@@ -0,0 +1,35 @@
{
services.kubernetes = {
roles = ["node"]; # Only "node", not "master"
masterAddress = "192.168.1.100"; # Your master's IP
# Enable required components for a worker
kubelet.enable = true;
proxy.enable = true;
flannel.enable = true; # Or whatever CNI you're using
# Use the same certificate setup
easyCerts = true;
pki.enable = true;
# Kubelet configuration
kubelet = {
kubeconfig.server = "https://192.168.1.100:6443";
hostname = "worker-gpu1"; # Or use the actual hostname
extraOpts = "--fail-swap-on=false"; # If you have swap enabled
};
};
# Container runtime
virtualisation.containerd.enable = true;
# Open required ports
networking.firewall.allowedTCPPorts = [
10250 # Kubelet API
30000-32767 # NodePort Services (optional)
];
# Ensure hostname is set properly
networking.hostName = "worker-gpu1"; # Or your preferred name
}