add ubuntu test pod
This commit is contained in:
parent
289b69d342
commit
0ac4dabdb5
4 changed files with 21 additions and 7 deletions
|
|
@ -35,7 +35,7 @@ in
|
||||||
token = config.sops.secrets.k3s_token.path;
|
token = config.sops.secrets.k3s_token.path;
|
||||||
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 }
|
manifests = import ./manifests.nix { inherit lib cfg inputs }
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ cfg, lib, ... }:
|
{ cfg, lib, inputs, ... }:
|
||||||
let
|
let
|
||||||
manifests = [
|
manifests = [
|
||||||
|
"./ubuntu.nix"
|
||||||
];
|
];
|
||||||
imported = map ( n: import ${n} { inherit cfg, lib } ) manifests;
|
imported = map ( n: import ${n} { inherit cfg lib inputs } ) manifests;
|
||||||
in
|
in
|
||||||
lib.foldl' lib.recursiveUpdate {} imported
|
lib.foldl' lib.recursiveUpdate {} imported
|
||||||
14
modules/k3s/deployments/ubuntu.nix
Normal file
14
modules/k3s/deployments/ubuntu.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{cfg, lib, inputs, ...}:
|
||||||
|
{
|
||||||
|
ubuntu.content = {
|
||||||
|
apiVersion = "v1";
|
||||||
|
kind = "Pod";
|
||||||
|
metadata.name = "ubuntu";
|
||||||
|
spec.containers = [
|
||||||
|
{
|
||||||
|
name = "ubuntu";
|
||||||
|
image = "ubuntu:latest";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ cfg, lib, ... }:
|
{ cfg, lib, inputs, ... }:
|
||||||
let
|
let
|
||||||
manifests = [
|
manifests = [
|
||||||
|
""
|
||||||
];
|
];
|
||||||
imported = map ( n: import ${n} { inherit cfg, lib } ) manifests;
|
imported = map ( n: import ${n} { inherit cfg lib inputs } ) manifests;
|
||||||
in
|
in
|
||||||
lib.foldl' lib.recursiveUpdate {} imported
|
lib.foldl' lib.recursiveUpdate {} imported
|
||||||
Loading…
Add table
Add a link
Reference in a new issue