fix: run other k3s clusters as kubevirt quests, use the interface provided by kubevirt

This commit is contained in:
Ryan Yin
2024-03-31 23:58:38 +08:00
parent 7486e75016
commit c628eaa6c8
38 changed files with 111 additions and 130 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ This repository is home to the nix code that builds my systems:
1. NixOS Desktops: NixOS with home-manager, i3, hyprland, agenix, etc. 1. NixOS Desktops: NixOS with home-manager, i3, hyprland, agenix, etc.
2. macOS Desktops: nix-darwin with home-manager, share the same home-manager configuration with 2. macOS Desktops: nix-darwin with home-manager, share the same home-manager configuration with
NixOS Desktops. NixOS Desktops.
3. NixOS Servers: virtual machines running on Proxmox, with various services, such as kubernetes, 3. NixOS Servers: virtual machines running on Proxmox/KubeVirt, with various services, such as
homepage, prometheus, grafana, etc. kubernetes, homepage, prometheus, grafana, etc.
See [./hosts](./hosts) for details of each host. See [./hosts](./hosts) for details of each host.
@@ -2,24 +2,31 @@
# For configuration options and examples, please see: # For configuration options and examples, please see:
# https://gethomepage.dev/latest/configs/services # https://gethomepage.dev/latest/configs/services
- Proxmox VE 虚拟化集群: - KubeVirt 虚拟化集群:
- PVE-UM560: - KubeVirt-Shoryu:
icon: si-proxmox icon: si-kubevirt
href: https://192.168.5.173:8006/
description: "CPU: R5-5625U / MEM: 32G / DISK: 512G+4T*2"
siteMonitor: https://192.168.5.173:8006/
- PVE-S500Plus:
icon: si-proxmox
href: https://192.168.5.174:8006/
description: "CPU: R7-5825U / MEM: 64G / DISK: 1T" description: "CPU: R7-5825U / MEM: 64G / DISK: 1T"
siteMonitor: https://192.168.5.174:8006/ href: http://grafana.writefor.fun/d/rYdddlPWk/node-exporter-full?orgId=1&var-node=192.168.5.181:9100
siteMonitor: http://grafana.writefor.fun/d/rYdddlPWk/node-exporter-full?orgId=1&var-node=192.168.5.181:9100
- PVE-GTR5: - KubeVirt-Shushou:
icon: si-proxmox icon: si-kubevirt
href: https://192.168.5.172:8006/
description: "CPU: R9-5900HX / MEM: 64G / DISK: 1T" description: "CPU: R9-5900HX / MEM: 64G / DISK: 1T"
siteMonitor: https://192.168.5.172:8006/ href: http://grafana.writefor.fun/d/rYdddlPWk/node-exporter-full?orgId=1&var-node=192.168.5.182:9100
siteMonitor: http://grafana.writefor.fun/d/rYdddlPWk/node-exporter-full?orgId=1&var-node=192.168.5.182:9100
- KubeVirt-Youko:
icon: si-kubevirt
description: "CPU: R5-5625U / MEM: 32G / DISK: 512G+4T*2"
href: http://grafana.writefor.fun/d/rYdddlPWk/node-exporter-full?orgId=1&var-node=192.168.5.183:9100
siteMonitor: http://grafana.writefor.fun/d/rYdddlPWk/node-exporter-full?orgId=1&var-node=192.168.5.183:9100
- LongHorn-Storage:
icon: si-longhorn
href: http://longhorn.writefor.fun/
- Victoria-Metrics:
icon: si-victoriametrics
href: http://vm.writefor.fun/
- KubeVirt-Grafana:
icon: si-grafana
href: http://k8s-grafana.writefor.fun/
- Homelab Monitoring: - Homelab Monitoring:
- Grafana: - Grafana:
@@ -40,8 +40,8 @@ useEqualHeights: true
# Groups and its layout # Groups and its layout
# Groups Name should match the name defined in your services.yaml or widgets.yaml # Groups Name should match the name defined in your services.yaml or widgets.yaml
layout: layout:
Proxmox VE 虚拟化集群: KubeVirt 虚拟化集群:
icon: si-proxmox icon: si-kubevirt
tab: First tab: First
Group A: Group A:
+7 -11
View File
@@ -8,7 +8,7 @@ in {
homelab-backup = { homelab-backup = {
inherit passwordFile; inherit passwordFile;
initialize = true; # Initialize the repository if it doesn't exist. initialize = true; # Initialize the repository if it doesn't exist.
repository = "rclone:smb-downloads:/Downloads/proxmox-backup/"; # backup to a rclone remote repository = "rclone:smb-downloads:/Downloads/kubevirt-backup/"; # backup to a rclone remote
# rclone related # rclone related
# rcloneOptions = { # rcloneOptions = {
@@ -34,20 +34,16 @@ in {
# A script that must run before starting the backup process. # A script that must run before starting the backup process.
backupPrepareCommand = '' backupPrepareCommand = ''
${pkgs.nushell}/bin/nu -c ' ${pkgs.nushell}/bin/nu -c '
let pve_nodes = [ let kubevirt_nodes = [
# proxmox cluster's nodes "kubevirt-shoryu"
"um560" "kubevirt-shushou"
"gtr5" "kubevirt-youko"
"s500plus"
# others
"kana"
] ]
pve_nodes | each {|it| kubevirt_nodes | each {|it|
rsync -avz \ rsync -avz \
-e "ssh -i ${sshKeyPath}" \ -e "ssh -i ${sshKeyPath}" \
$"($it):/var/lib/vz" $"/tmp/restic-backup-temp/($it)" $"($it):/perissitent/" $"/tmp/restic-backup-temp/($it)"
} }
' '
''; '';
+1 -1
View File
@@ -1,7 +1,7 @@
{myvars, ...}: {myvars, ...}:
############################################################# #############################################################
# #
# Aquamarine - A NixOS VM running on Proxmox # Aquamarine - A NixOS VM running on Proxmox/KubeVirt
# #
############################################################# #############################################################
let let
+1 -1
View File
@@ -5,7 +5,7 @@
}: }:
############################################################# #############################################################
# #
# Kana - a NixOS VM running on Proxmox # Kana - a NixOS VM running on Proxmox/KubeVirt
# #
############################################################# #############################################################
let let
+1 -1
View File
@@ -5,7 +5,7 @@
}: }:
############################################################# #############################################################
# #
# Ruby - a NixOS VM running on Proxmox # Ruby - a NixOS VM running on Proxmox/KubeVirt
# #
############################################################# #############################################################
let let
+1 -1
View File
@@ -7,7 +7,7 @@
}: let }: let
hostName = "k3s-prod-1-master-1"; # Define your hostname. hostName = "k3s-prod-1-master-1"; # Define your hostname.
coreModule = mylib.genKubeVirtCoreModule { coreModule = mylib.genKubeVirtGuestModule {
inherit pkgs hostName; inherit pkgs hostName;
inherit (myvars) networking; inherit (myvars) networking;
}; };
+1 -1
View File
@@ -7,7 +7,7 @@
}: let }: let
hostName = "k3s-prod-1-master-2"; # define your hostname. hostName = "k3s-prod-1-master-2"; # define your hostname.
coreModule = mylib.genKubeVirtCoreModule { coreModule = mylib.genKubeVirtGuestModule {
inherit pkgs hostName; inherit pkgs hostName;
inherit (myvars) networking; inherit (myvars) networking;
}; };
+1 -1
View File
@@ -7,7 +7,7 @@
}: let }: let
hostName = "k3s-prod-1-master-3"; # define your hostname. hostName = "k3s-prod-1-master-3"; # define your hostname.
coreModule = mylib.genKubeVirtCoreModule { coreModule = mylib.genKubeVirtGuestModule {
inherit pkgs hostName; inherit pkgs hostName;
inherit (myvars) networking; inherit (myvars) networking;
}; };
+1 -1
View File
@@ -7,7 +7,7 @@
}: let }: let
hostName = "k3s-prod-1-worker-1"; # define your hostname. hostName = "k3s-prod-1-worker-1"; # define your hostname.
coreModule = mylib.genKubeVirtCoreModule { coreModule = mylib.genKubeVirtGuestModule {
inherit pkgs hostName; inherit pkgs hostName;
inherit (myvars) networking; inherit (myvars) networking;
}; };
+1 -1
View File
@@ -7,7 +7,7 @@
}: let }: let
hostName = "k3s-prod-1-worker-2"; # define your hostname. hostName = "k3s-prod-1-worker-2"; # define your hostname.
coreModule = mylib.genKubeVirtCoreModule { coreModule = mylib.genKubeVirtGuestModule {
inherit pkgs hostName; inherit pkgs hostName;
inherit (myvars) networking; inherit (myvars) networking;
}; };
+1 -1
View File
@@ -7,7 +7,7 @@
}: let }: let
hostName = "k3s-prod-1-worker-3"; # define your hostname. hostName = "k3s-prod-1-worker-3"; # define your hostname.
coreModule = mylib.genKubeVirtCoreModule { coreModule = mylib.genKubeVirtGuestModule {
inherit pkgs hostName; inherit pkgs hostName;
inherit (myvars) networking; inherit (myvars) networking;
}; };
+1 -1
View File
@@ -7,7 +7,7 @@
}: let }: let
hostName = "k3s-test-1-master-1"; # Define your hostname. hostName = "k3s-test-1-master-1"; # Define your hostname.
coreModule = mylib.genKubeVirtCoreModule { coreModule = mylib.genKubeVirtGuestModule {
inherit pkgs hostName; inherit pkgs hostName;
inherit (myvars) networking; inherit (myvars) networking;
}; };
+1 -1
View File
@@ -7,7 +7,7 @@
}: let }: let
hostName = "k3s-test-1-master-2"; # define your hostname. hostName = "k3s-test-1-master-2"; # define your hostname.
coreModule = mylib.genKubeVirtCoreModule { coreModule = mylib.genKubeVirtGuestModule {
inherit pkgs hostName; inherit pkgs hostName;
inherit (myvars) networking; inherit (myvars) networking;
}; };
+1 -1
View File
@@ -7,7 +7,7 @@
}: let }: let
hostName = "k3s-test-1-master-3"; # define your hostname. hostName = "k3s-test-1-master-3"; # define your hostname.
coreModule = mylib.genKubeVirtCoreModule { coreModule = mylib.genKubeVirtGuestModule {
inherit pkgs hostName; inherit pkgs hostName;
inherit (myvars) networking; inherit (myvars) networking;
}; };
+1 -1
View File
@@ -9,7 +9,7 @@
# MoreFine - S500Plus # MoreFine - S500Plus
hostName = "kubevirt-shoryu"; # Define your hostname. hostName = "kubevirt-shoryu"; # Define your hostname.
coreModule = mylib.genKubeVirtCoreModule { coreModule = mylib.genKubeVirtHostModule {
inherit pkgs hostName; inherit pkgs hostName;
inherit (myvars) networking; inherit (myvars) networking;
}; };
+1 -2
View File
@@ -7,9 +7,8 @@
... ...
}: let }: let
hostName = "kubevirt-shushou"; # Define your hostname. hostName = "kubevirt-shushou"; # Define your hostname.
k3sServerName = "kubevirt-shoryu";
coreModule = mylib.genKubeVirtCoreModule { coreModule = mylib.genKubeVirtHostModule {
inherit pkgs hostName; inherit pkgs hostName;
inherit (myvars) networking; inherit (myvars) networking;
}; };
+1 -2
View File
@@ -7,9 +7,8 @@
... ...
}: let }: let
hostName = "kubevirt-youko"; # Define your hostname. hostName = "kubevirt-youko"; # Define your hostname.
k3sServerName = "kubevirt-shoryu";
coreModule = mylib.genKubeVirtCoreModule { coreModule = mylib.genKubeVirtHostModule {
inherit pkgs hostName; inherit pkgs hostName;
inherit (myvars) networking; inherit (myvars) networking;
}; };
+2 -1
View File
@@ -5,9 +5,10 @@
attrs = import ./attrs.nix {inherit lib;}; attrs = import ./attrs.nix {inherit lib;};
genKubeVirtCoreModule = import ./genKubeVirtCoreModule.nix;
genK3sServerModule = import ./genK3sServerModule.nix; genK3sServerModule = import ./genK3sServerModule.nix;
genK3sAgentModule = import ./genK3sAgentModule.nix; genK3sAgentModule = import ./genK3sAgentModule.nix;
genKubeVirtHostModule = import ./genKubeVirtHostModule.nix;
genKubeVirtGuestModule = import ./genKubeVirtGuestModule.nix;
# use path relative to the root of the project # use path relative to the root of the project
relativeToRoot = lib.path.append ../.; relativeToRoot = lib.path.append ../.;
+33
View File
@@ -0,0 +1,33 @@
{
pkgs,
hostName,
networking,
...
}: let
inherit (networking.hostsAddr.${hostName}) iface;
in {
# supported file systems, so we can mount any removable disks with these filesystems
boot.supportedFilesystems = [
"ext4"
"btrfs"
"xfs"
"fat"
"vfat"
"exfat"
];
networking = {
inherit hostName;
inherit (networking) defaultGateway nameservers;
inherit (networking.hostsInterface.${hostName}) interfaces;
networkmanager.enable = false;
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
}
-7
View File
@@ -17,13 +17,6 @@ in
nixos-modules nixos-modules
++ [ ++ [
nixos-generators.nixosModules.all-formats nixos-generators.nixosModules.all-formats
{
# formatConfigs.iso = {config, ...}: {};
formatConfigs.proxmox = {config, ...}: {
# custom proxmox's image name
proxmox.qemuConf.name = "${config.networking.hostName}-nixos-${config.system.nixos.label}";
};
}
] ]
++ ( ++ (
lib.optionals ((lib.lists.length home-modules) > 0) lib.optionals ((lib.lists.length home-modules) > 0)
@@ -27,7 +27,8 @@
services.qemuGuest.enable = true; services.qemuGuest.enable = true;
services.openssh.enable = true; services.openssh.enable = true;
services.cloud-init.enable = true; # we configure the host via nixos itself, so we don't need the cloud-init
services.cloud-init.enable = false;
systemd.services."serial-getty@ttyS0".enable = true; systemd.services."serial-getty@ttyS0".enable = true;
}; };
} }
@@ -1,36 +0,0 @@
{lib, ...}:
##############################################################################
#
# Template for Proxmox's VM, mainly based on:
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/virtualisation/proxmox-image.nix
#
# the url above is used by `nixos-generator` to generate the Proxmox's VMA image file.
#
##############################################################################
{
boot = {
# after resize the disk, it will grow partition automatically.
growPartition = true;
kernelParams = ["console=ttyS0"];
loader.grub = {
device = "/dev/vda";
# we do not support EFI, so disable it.
efiSupport = false;
efiInstallAsRemovable = false;
};
loader.timeout = lib.mkForce 3; # wait for 3 seconds to select the boot entry
initrd.availableKernelModules = ["uas" "virtio_blk" "virtio_pci"];
};
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
autoResize = true;
fsType = "ext4";
};
# we do not have a /boot partition, so do not mount it.
# it alse had qemu-guest-agent installed by default.
services.qemuGuest.enable = lib.mkDefault true;
}
@@ -36,6 +36,5 @@ in {
colmena.${name} = colmena.${name} =
mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;}); mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;});
# generate proxmox image for virtual machines without desktop environment packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt;
packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.proxmox;
} }
+1 -2
View File
@@ -36,6 +36,5 @@ in {
colmena.${name} = colmena.${name} =
mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;}); mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;});
# generate proxmox image for virtual machines without desktop environment packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt;
packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.proxmox;
} }
+1 -2
View File
@@ -39,8 +39,7 @@ in {
colmena.${name} = colmena.${name} =
mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;}); mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;});
# generate proxmox image for virtual machines without desktop environment packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt;
packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.proxmox;
# nixos tests # nixos tests
packages."${name}-nixos-tests" = import ../nixos-tests/idols-ruby.nix systemArgs; packages."${name}-nixos-tests" = import ../nixos-tests/idols-ruby.nix systemArgs;
@@ -20,7 +20,7 @@
# common # common
"secrets/nixos.nix" "secrets/nixos.nix"
"modules/nixos/server/server.nix" "modules/nixos/server/server.nix"
"modules/nixos/server/proxmox-hardware-configuration.nix" "modules/nixos/server/kubevirt-hardware-configuration.nix"
# host specific # host specific
"hosts/k8s/${name}" "hosts/k8s/${name}"
]) ])
@@ -39,6 +39,5 @@ in {
colmena.${name} = colmena.${name} =
mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;}); mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;});
# generate proxmox image for virtual machines without desktop environment packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt;
packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.proxmox;
} }
@@ -20,7 +20,7 @@
# common # common
"secrets/nixos.nix" "secrets/nixos.nix"
"modules/nixos/server/server.nix" "modules/nixos/server/server.nix"
"modules/nixos/server/proxmox-hardware-configuration.nix" "modules/nixos/server/kubevirt-hardware-configuration.nix"
# host specific # host specific
"hosts/k8s/${name}" "hosts/k8s/${name}"
]) ])
@@ -36,6 +36,5 @@ in {
colmena.${name} = colmena.${name} =
mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;}); mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;});
# generate proxmox image for virtual machines without desktop environment packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt;
packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.proxmox;
} }
@@ -20,7 +20,7 @@
# common # common
"secrets/nixos.nix" "secrets/nixos.nix"
"modules/nixos/server/server.nix" "modules/nixos/server/server.nix"
"modules/nixos/server/proxmox-hardware-configuration.nix" "modules/nixos/server/kubevirt-hardware-configuration.nix"
# host specific # host specific
"hosts/k8s/${name}" "hosts/k8s/${name}"
]) ])
@@ -36,6 +36,5 @@ in {
colmena.${name} = colmena.${name} =
mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;}); mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;});
# generate proxmox image for virtual machines without desktop environment packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt;
packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.proxmox;
} }
@@ -20,7 +20,7 @@
# common # common
"secrets/nixos.nix" "secrets/nixos.nix"
"modules/nixos/server/server.nix" "modules/nixos/server/server.nix"
"modules/nixos/server/proxmox-hardware-configuration.nix" "modules/nixos/server/kubevirt-hardware-configuration.nix"
# host specific # host specific
"hosts/k8s/${name}" "hosts/k8s/${name}"
]) ])
@@ -36,6 +36,5 @@ in {
colmena.${name} = colmena.${name} =
mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;}); mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;});
# generate proxmox image for virtual machines without desktop environment packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt;
packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.proxmox;
} }
@@ -20,7 +20,7 @@
# common # common
"secrets/nixos.nix" "secrets/nixos.nix"
"modules/nixos/server/server.nix" "modules/nixos/server/server.nix"
"modules/nixos/server/proxmox-hardware-configuration.nix" "modules/nixos/server/kubevirt-hardware-configuration.nix"
# host specific # host specific
"hosts/k8s/${name}" "hosts/k8s/${name}"
]) ])
@@ -36,6 +36,5 @@ in {
colmena.${name} = colmena.${name} =
mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;}); mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;});
# generate proxmox image for virtual machines without desktop environment packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt;
packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.proxmox;
} }
@@ -20,7 +20,7 @@
# common # common
"secrets/nixos.nix" "secrets/nixos.nix"
"modules/nixos/server/server.nix" "modules/nixos/server/server.nix"
"modules/nixos/server/proxmox-hardware-configuration.nix" "modules/nixos/server/kubevirt-hardware-configuration.nix"
# host specific # host specific
"hosts/k8s/${name}" "hosts/k8s/${name}"
]) ])
@@ -36,6 +36,5 @@ in {
colmena.${name} = colmena.${name} =
mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;}); mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;});
# generate proxmox image for virtual machines without desktop environment packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt;
packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.proxmox;
} }
@@ -39,6 +39,5 @@ in {
colmena.${name} = colmena.${name} =
mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;}); mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;});
# generate proxmox image for virtual machines without desktop environment
packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt; packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt;
} }
@@ -36,6 +36,5 @@ in {
colmena.${name} = colmena.${name} =
mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;}); mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;});
# generate proxmox image for virtual machines without desktop environment
packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt; packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt;
} }
@@ -36,6 +36,5 @@ in {
colmena.${name} = colmena.${name} =
mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;}); mylib.colmenaSystem (systemArgs // {inherit tags ssh-user;});
# generate proxmox image for virtual machines without desktop environment
packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt; packages.${name} = inputs.self.nixosConfigurations.${name}.config.formats.kubevirt;
} }
+10 -10
View File
@@ -36,17 +36,17 @@
}; };
aquamarine = { aquamarine = {
# VM # VM
iface = "ens18"; iface = "eth1";
ipv4 = "192.168.5.101"; ipv4 = "192.168.5.101";
}; };
ruby = { ruby = {
# VM # VM
iface = "ens18"; iface = "eth1";
ipv4 = "192.168.5.102"; ipv4 = "192.168.5.102";
}; };
kana = { kana = {
# VM # VM
iface = "ens18"; iface = "eth1";
ipv4 = "192.168.5.103"; ipv4 = "192.168.5.103";
}; };
nozomi = { nozomi = {
@@ -61,7 +61,7 @@
}; };
chiaya = { chiaya = {
# VM # VM
iface = "ens18"; iface = "eth1";
ipv4 = "192.168.5.106"; ipv4 = "192.168.5.106";
}; };
suzu = { suzu = {
@@ -90,32 +90,32 @@
# ============================================ # ============================================
k3s-prod-1-master-1 = { k3s-prod-1-master-1 = {
# VM # VM
iface = "ens18"; iface = "eth1";
ipv4 = "192.168.5.108"; ipv4 = "192.168.5.108";
}; };
k3s-prod-1-master-2 = { k3s-prod-1-master-2 = {
# VM # VM
iface = "ens18"; iface = "eth1";
ipv4 = "192.168.5.109"; ipv4 = "192.168.5.109";
}; };
k3s-prod-1-master-3 = { k3s-prod-1-master-3 = {
# VM # VM
iface = "ens18"; iface = "eth1";
ipv4 = "192.168.5.110"; ipv4 = "192.168.5.110";
}; };
k3s-prod-1-worker-1 = { k3s-prod-1-worker-1 = {
# VM # VM
iface = "ens18"; iface = "eth1";
ipv4 = "192.168.5.111"; ipv4 = "192.168.5.111";
}; };
k3s-prod-1-worker-2 = { k3s-prod-1-worker-2 = {
# VM # VM
iface = "ens18"; iface = "eth1";
ipv4 = "192.168.5.112"; ipv4 = "192.168.5.112";
}; };
k3s-prod-1-worker-3 = { k3s-prod-1-worker-3 = {
# VM # VM
iface = "ens18"; iface = "eth1";
ipv4 = "192.168.5.113"; ipv4 = "192.168.5.113";
}; };