set pod to disabled
This commit is contained in:
parent
13ca7b2517
commit
d5edaa944b
2 changed files with 18 additions and 0 deletions
|
|
@ -36,6 +36,9 @@ in
|
||||||
clusterInit = mkIf cfg.initServer true;
|
clusterInit = mkIf cfg.initServer true;
|
||||||
serverAddr = mkIf (!cfg.initServer) "https://10.5.0.103:6443";
|
serverAddr = mkIf (!cfg.initServer) "https://10.5.0.103:6443";
|
||||||
manifests = import ./manifests.nix { inherit lib cfg inputs; };
|
manifests = import ./manifests.nix { inherit lib cfg inputs; };
|
||||||
|
disable = [
|
||||||
|
"test-ubuntu"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
15
modules/k3s/deployments/ubuntu.nix
Normal file
15
modules/k3s/deployments/ubuntu.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{cfg, lib, inputs, ...}:
|
||||||
|
{
|
||||||
|
ubuntu.content = {
|
||||||
|
apiVersion = "v1";
|
||||||
|
kind = "Pod";
|
||||||
|
metadata.name = "test-ubuntu";
|
||||||
|
spec.containers = [
|
||||||
|
{
|
||||||
|
name = "test-ubuntu";
|
||||||
|
image = "ubuntu:latest";
|
||||||
|
command = [ "tail" "-f" "/dev/null" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue