mirror of
https://github.com/caperren/nixos-configs.git
synced 2025-12-30 11:04:19 +00:00
Start testing k3s
This commit is contained in:
@@ -6,6 +6,9 @@
|
|||||||
|
|
||||||
# Host Groups
|
# Host Groups
|
||||||
../../modules/host-groups/cluster.nix
|
../../modules/host-groups/cluster.nix
|
||||||
|
|
||||||
|
# Application Groups
|
||||||
|
../../modules/application-groups/k3s-primary.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "cap-clust-01";
|
networking.hostName = "cap-clust-01";
|
||||||
|
|||||||
@@ -6,6 +6,9 @@
|
|||||||
|
|
||||||
# Host Groups
|
# Host Groups
|
||||||
../../modules/host-groups/cluster.nix
|
../../modules/host-groups/cluster.nix
|
||||||
|
|
||||||
|
# Application Groups
|
||||||
|
../../modules/application-groups/k3s-secondary.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "cap-clust-02";
|
networking.hostName = "cap-clust-02";
|
||||||
|
|||||||
@@ -6,6 +6,9 @@
|
|||||||
|
|
||||||
# Host Groups
|
# Host Groups
|
||||||
../../modules/host-groups/cluster.nix
|
../../modules/host-groups/cluster.nix
|
||||||
|
|
||||||
|
# Application Groups
|
||||||
|
../../modules/application-groups/k3s-primary.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "cap-clust-03";
|
networking.hostName = "cap-clust-03";
|
||||||
|
|||||||
9
modules/application-groups/k3s-primary.nix
Normal file
9
modules/application-groups/k3s-primary.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.k3s = {
|
||||||
|
enable = true;
|
||||||
|
role = "server";
|
||||||
|
token = "forinitialtestingonly";
|
||||||
|
clusterInit = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
9
modules/application-groups/k3s-secondary.nix
Normal file
9
modules/application-groups/k3s-secondary.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.k3s = {
|
||||||
|
enable = true;
|
||||||
|
role = "server"; # Or "agent" for worker only nodes
|
||||||
|
token = "forinitialtestingonly";
|
||||||
|
serverAddr = "https://cap-clust-01:6443";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -32,6 +32,7 @@
|
|||||||
imagemagick
|
imagemagick
|
||||||
iotop
|
iotop
|
||||||
jq
|
jq
|
||||||
|
k3s
|
||||||
kdePackages.qt6ct
|
kdePackages.qt6ct
|
||||||
killall
|
killall
|
||||||
kitty
|
kitty
|
||||||
|
|||||||
Reference in New Issue
Block a user