nixos

NixOS server files. Mirror from https://git.nordgedanken.dev/kubernetes/nixos
git clone git://archive.git.mtrnord.blog/MTRNord/nixos.git
Log | Files | Refs | README

commit 5ad8be550e56407d14409239fd1a68d1af7b3447
parent 95ae950b983d560aea187585dbd050b162177b6a
Author: MTRNord <support@nordgedanken.dev>
Date:   Tue, 12 Sep 2023 11:45:54 +0200

mow

Diffstat:
Alogfile.txt | 0
Mnixos/common/lib/patroni.nix | 15++++++++-------
2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/logfile.txt b/logfile.txt diff --git a/nixos/common/lib/patroni.nix b/nixos/common/lib/patroni.nix @@ -26,17 +26,18 @@ etcd = { enable = true; initialClusterState = "existing"; - listenClientUrls = [ "http://100.64.0.1:2379" ]; - listenPeerUrls = [ "http://100.64.0.1:2380" ]; + listenClientUrls = [ "http://10.100.0.1:2379" ]; + listenPeerUrls = [ "http://10.100.0.1:2380" ]; initialCluster = [ - "worker-1=http://100.64.0.1:2380" - "nordgedanken=http://100.64.0.3:2380" + "worker-1=http://10.100.0.1:2380" + "nordgedanken=http://10.100.0.2:2380" ]; extraConf = { "UNSUPPORTED_ARCH" = "arm64"; "ENABLE_V2" = "true"; }; }; + patroni = { enable = true; nodeIp = "10.100.0.1"; @@ -110,8 +111,8 @@ }; etcd = { hosts = [ - "100.64.0.3:2379" - "100.64.0.1:2379" + "10.100.0.1:2379" + "10.100.0.2:2379" ]; }; tags = { @@ -143,5 +144,5 @@ }; }; - systemd.services.etcd.serviceConfig.ExecStart = lib.mkForce "${pkgs.etcd_3_4}/bin/etcd"; + systemd.services.etcd.serviceConfig.ExecStart = lib.mkForce "${pkgs.etcd_3_4}/bin/etcd --force-new-cluster"; }