Update k0 to multi etcd

This commit is contained in:
Jonas Juselius
2021-09-22 21:05:44 +02:00
parent bd426750ec
commit 35bcff9d6f
2 changed files with 54 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.node;
cfg = config.features.k8s.host;
mkSANs = host: [
host.name
@@ -91,20 +91,29 @@ let
address = cfg.address;
};
fileSystems = {
"/vol/local-storage/vol1" = {
device = "/vol/vol1";
options = [ "bind" ];
};
"/vol/local-storage/vol2" = {
device = "/vol/vol2";
options = [ "bind" ];
};
};
};
in {
options.node = {
address = mkOption {
type = types.str;
default = null;
};
# options.node = {
# address = mkOption {
# type = types.str;
# default = null;
# };
name = mkOption {
type = types.str;
default = null;
};
};
# name = mkOption {
# type = types.str;
# default = null;
# };
# };
config = configuration;