home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 8ade46283b99ba634617acb63d75993950e42d95
parent efd9e3e878f6b29ac3a2df98dd49d60cdc89b612
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 15 Oct 2021 11:00:41 +0200

ops: clean home network

- Remove hokkaido
- Add some tags to "bare metal" hosts
- Add a simple healthChecks on k8sn1, probably more to come, it's fun

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mops/home/network.nix | 14+++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/ops/home/network.nix b/ops/home/network.nix @@ -13,6 +13,12 @@ in deployment.targetHost = "192.168.1.130"; # deployment.targetHost = "k8sn1.home"; deployment.tags = [ "kubernetes" "master" ]; + deployment.healthChecks = { + cmd = [{ + cmd = [ "kubectl" "--kubeconfig=/etc/kubernetes/cluster-admin.kubeconfig" "version" ]; + description = "Validating that kubectl is available and a cluster is running"; + }]; + }; imports = [ ../../systems/hosts/k8sn1.nix ]; }; "k8sn2" = { config, pkgs, lib, ... }: { @@ -32,21 +38,19 @@ in "wakasu" = { config, pkgs, lib, ... }: { deployment.targetUser = "root"; deployment.targetHost = "wakasu.home"; + deployment.tags = [ "baremetal" "wakasu" ]; imports = [ ../../systems/hosts/wakasu.nix ]; }; "sakhalin" = { config, pkgs, lib, ... }: { deployment.targetUser = "root"; deployment.targetHost = "sakhalin.home"; + deployment.tags = [ "baremetal" "sakhalin" ]; imports = [ ../../systems/hosts/sakhalin.nix ]; }; "okinawa" = { config, pkgs, lib, ... }: { deployment.targetUser = "root"; deployment.targetHost = "okinawa.home"; + deployment.tags = [ "baremetal" "okinawa" ]; imports = [ ../../systems/hosts/okinawa.nix ]; }; - "hokkaido" = { config, pkgs, lib, ... }: { - deployment.targetUser = "root"; - deployment.targetHost = "hokkaido.home"; - imports = [ ../../systems/hosts/hokkaido.nix ]; - }; }