mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-25 02:41:26 +01:00
feat: hosts/k8s - fix k3s cidr (#200)
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
masterHost,
|
||||
clusterInit ? false,
|
||||
kubeletExtraArgs ? [],
|
||||
k3sExtraArgs ? [],
|
||||
nodeLabels ? [],
|
||||
nodeTaints ? [],
|
||||
disableFlannel ? true,
|
||||
@@ -35,7 +36,12 @@ in {
|
||||
];
|
||||
|
||||
# Kernel modules required by cilium
|
||||
boot.kernelModules = ["ip6_tables" "ip6table_mangle" "ip6table_raw" "ip6table_filter"];
|
||||
boot.kernelModules = [
|
||||
"ip6_tables"
|
||||
"ip6table_mangle"
|
||||
"ip6table_raw"
|
||||
"ip6table_filter"
|
||||
];
|
||||
networking.enableIPv6 = true;
|
||||
networking.nat = {
|
||||
enable = true;
|
||||
@@ -71,7 +77,8 @@ in {
|
||||
++ (map (label: "--node-label=${label}") nodeLabels)
|
||||
++ (map (taint: "--node-taint=${taint}") nodeTaints)
|
||||
++ (map (arg: "--kubelet-arg=${arg}") kubeletExtraArgs)
|
||||
++ (lib.optionals disableFlannel ["--flannel-backend=none"]);
|
||||
++ (lib.optionals disableFlannel ["--flannel-backend=none"])
|
||||
++ k3sExtraArgs;
|
||||
in
|
||||
lib.concatStringsSep " " flagList;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user