Add option to add labels to Kubernetes nodes

Make nextcloud always go to nodes with fast storage
Don't mount nextcloud on syncthing pod
This commit is contained in:
Pim Kunis 2024-05-24 23:40:19 +02:00
parent 11200c0ff7
commit afa0bd023e
8 changed files with 41 additions and 9 deletions

View file

@ -1,6 +1,7 @@
{
machines.atlas = {
arch = "x86_64-linux";
kubernetesNodeLabels.storageType = "slow";
nixosModule.lab = {
storage = {

View file

@ -22,6 +22,14 @@ let
Customized configuration for this machine in the form of a NixOS module.
'';
};
kubernetesNodeLabels = lib.mkOption {
default = null;
type = with lib.types; nullOr attrs;
description = ''
Any labels to add to the Kubernetes node.
'';
};
};
};
in

View file

@ -1,6 +1,7 @@
{
machines.jefke = {
arch = "x86_64-linux";
kubernetesNodeLabels.storageType = "fast";
nixosModule.lab = {
storage = {