k8s cluster working & update

This commit is contained in:
ari committed 2024-11-08 22:22:09 -05:00
1 parent f703c93d3a
commit a27d701bac
10 files changed
+34 -27

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ let
cfg = config.skyg.nixos.server.k8s;
in
{
config = lib.mkIf (cfg.enable && (!cfg.isMaster)) {
config = lib.mkIf (cfg.enable && (!cfg.isMaster) && cfg.isNode) {
services.kubernetes = {
roles = [ "node" ];
kubelet.kubeconfig.server = "https://${cfg.masterHostName}:${toString cfg.masterAPIPort}";