Configure clustering with k3s
This commit is contained in:
parent
31267fa34c
commit
2249b4cc58
4 changed files with 14 additions and 1 deletions
|
@ -7,7 +7,6 @@
|
|||
services.k3s = {
|
||||
enable = true;
|
||||
role = "server";
|
||||
clusterInit = true;
|
||||
token = "verysecrettoken";
|
||||
extraFlags = toString ([
|
||||
"--write-kubeconfig-mode \"0644\""
|
||||
|
@ -19,6 +18,8 @@
|
|||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
6443
|
||||
2379
|
||||
2380
|
||||
];
|
||||
networking.firewall.allowedUDPPorts = [
|
||||
8472
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue