aboutsummaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2023-09-27 12:49:16 +0200
committerMax Audron <audron@cocaine.farm>2023-09-27 12:49:16 +0200
commit7f30f1c9d8b6b885081ad81e3fa3c6849b3f3548 (patch)
tree857bde9b44f25cb321b6d4831e6db99fba3888cb /machines
parentadd secrets submodule (diff)
test kubernetes deployment
Diffstat (limited to 'machines')
-rw-r--r--machines/nixbuilder/default.nix (renamed from machines/nixos-test/default.nix)5
-rw-r--r--machines/nixbuilder/hardware-configuration.nix (renamed from machines/nixos-test/hardware-configuration.nix)0
-rw-r--r--machines/test/default.nix20
-rw-r--r--machines/test2/default.nix31
4 files changed, 52 insertions, 4 deletions
diff --git a/machines/nixos-test/default.nix b/machines/nixbuilder/default.nix
index 651ae82..afbfa1c 100644
--- a/machines/nixos-test/default.nix
+++ b/machines/nixbuilder/default.nix
@@ -7,7 +7,7 @@
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
- networking.hostName = "default";
+ networking.hostName = "cke-nix-builder";
networking.domain = "";
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [
@@ -15,7 +15,8 @@
];
_module.args.nixinate = {
- host = "10.49.212.3";
+ host = "10.49.214.164";
+ sshUser = "audron";
buildOn = "remote";
substituteOnTarget = true;
hermetic = false;
diff --git a/machines/nixos-test/hardware-configuration.nix b/machines/nixbuilder/hardware-configuration.nix
index 850f51f..850f51f 100644
--- a/machines/nixos-test/hardware-configuration.nix
+++ b/machines/nixbuilder/hardware-configuration.nix
diff --git a/machines/test/default.nix b/machines/test/default.nix
index 92294be..30ccc3f 100644
--- a/machines/test/default.nix
+++ b/machines/test/default.nix
@@ -3,11 +3,27 @@
{
networking = {
domain = "vapor.systems";
- hostName = "test";
+ hostName = "test1";
+ };
+
+ pubKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKUp0JDfsn8peaZn1N6NxtdQvaElWr1QPeOV1wdgCZDb";
+
+ wireguard = {
+ enable = true;
+ v4 = { address = "10.10.0.1"; };
+ v6 = { address = "1"; };
+ publicKey = "kgb+qZvIHkMx0Rn1E9+zvKK8Qw5vBOkQ5wtO0O1Um1o=";
+ allowedIPs = [ "10.102.5.0/24" "fd15:3d8c:d429:102:500::/72" ];
+ endpoint = "80.240.27.237";
+ };
+
+ kubernetes = {
+ role = "server";
+ advertiseAddress = "80.240.27.237";
};
_module.args.nixinate = {
- host = "199.247.6.180";
+ host = "80.240.27.237";
sshUser = "audron";
buildOn = "remote";
substituteOnTarget = true;
diff --git a/machines/test2/default.nix b/machines/test2/default.nix
new file mode 100644
index 0000000..11af08d
--- /dev/null
+++ b/machines/test2/default.nix
@@ -0,0 +1,31 @@
+{ config, lib, pkgs, ... }:
+
+{
+ networking = {
+ domain = "vapor.systems";
+ hostName = "test2";
+ };
+
+ pubKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJbOAlwYaK4yd7Y2AMZtIFjqY5ihAaVvNm3nduG17dPo";
+
+ wireguard = {
+ enable = true;
+ v4 = { address = "10.10.0.2"; };
+ v6 = { address = "2"; };
+ publicKey = "oV+exEWmcU3UHS6iSK4rnPZg57D0R84EVJKZyVmEdUc=";
+ allowedIPs = [ "10.102.5.0/24" "fd15:3d8c:d429:102:500::/72" ];
+ endpoint = "140.82.37.154";
+ };
+
+ kubernetes = {
+ role = "agent";
+ };
+
+ _module.args.nixinate = {
+ host = "140.82.37.154";
+ sshUser = "audron";
+ buildOn = "remote";
+ substituteOnTarget = true;
+ hermetic = false;
+ };
+}