2025-12-08 20:33:41 -05:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports = [ ];
|
|
|
|
|
|
|
|
|
|
options.me = {
|
|
|
|
|
control_plane.enable = lib.mkOption {
|
|
|
|
|
type = lib.types.bool;
|
|
|
|
|
default = false;
|
|
|
|
|
example = true;
|
|
|
|
|
description = "Whether we want to install control_plane.";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
config = lib.mkIf config.me.control_plane.enable {
|
2025-12-16 21:07:39 -05:00
|
|
|
me.firewall.enable = true;
|
2025-12-08 20:33:41 -05:00
|
|
|
me.kube_apiserver.enable = true;
|
2025-12-15 19:47:35 -05:00
|
|
|
me.kube_controller_manager.enable = true;
|
2025-12-15 20:09:46 -05:00
|
|
|
me.kube_scheduler.enable = true;
|
|
|
|
|
me.kubernetes.enable = true;
|
2025-12-08 20:33:41 -05:00
|
|
|
};
|
|
|
|
|
}
|