Making sure that k8s is properly distributed
This commit is contained in:
1 parent
9f120c4352
commit
3f1b8a2b3e
6 files changed
+45
-22
No files matched your search
@@ -5,13 +5,11 @@ in
|
||||
{
|
||||
config = lib.mkIf (cfg.enable && cfg.isMaster) {
|
||||
services.kubernetes = {
|
||||
roles = [ "master" "node" ];
|
||||
roles = [ "master" ];
|
||||
apiserver = {
|
||||
securePort = cfg.masterAPIPort;
|
||||
advertiseAddress = cfg.masterIP;
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedUDPPorts = [ cfg.masterAPIPort ];
|
||||
networking.firewall.allowedTCPPorts = [ cfg.masterAPIPort ];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user