From 3c0347e734b759bce275e5520a8c318be2fa6ac3 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 10 Aug 2024 11:52:35 -0700 Subject: [PATCH] Add initial kubernetes configuration --- lib/fudo/domains.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/fudo/domains.nix b/lib/fudo/domains.nix index f066bc0..d7e7dba 100644 --- a/lib/fudo/domains.nix +++ b/lib/fudo/domains.nix @@ -84,6 +84,24 @@ let default = null; }; + kubernetes = let + kubeOpts.options = { + masters = mkOption { + type = listOf str; + description = "Master Kubernetes hosts."; + }; + + nodes = mkOption { + type = listOf str; + description = "List of Kubernetes nodes."; + }; + }; + in mkOption { + type = nullOr (submodule kubeOpts); + description = "Kubernetes configuration."; + default = null; + }; + backplane = mkOption { type = nullOr (submodule { options = {