Update k0 to multi etcd
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user