From 1bfd1b42225c73497d233c1758a7d358f84eb091 Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Sun, 22 Dec 2024 07:54:26 -0600 Subject: [PATCH] update --- flake.nix | 2 +- infra/talos/01b.us/.gitignore | 2 ++ infra/talos/01b.us/init-cluster.sh | 40 +++++++++++++++++++++++++++++- 3 files changed, 42 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index ca9f97a4..12c4749d 100755 --- a/flake.nix +++ b/flake.nix @@ -32,7 +32,7 @@ rec { #url = "github:Svenum/Solaar-Flake/main"; # Uncomment line for latest unstable version inputs.nixpkgs.follows = "nixpkgs"; }; - # "git+https://github.com/NixOS/nixpkgs?shallow=1&ref=nixpkgs-unstable"; + # TODO: ?? use git instead of github ?? "git+https://github.com/NixOS/nixpkgs?shallow=1&ref=nixpkgs-unstable"; rose-pine-hyprcursor.url = "github:ndom91/rose-pine-hyprcursor?shallow=1"; nixos-facter-modules.url = "github:numtide/nixos-facter-modules?shallow=1"; affinity-nix.url = "github:mrshmllow/affinity-nix/c17bda86504d6f8ded13e0520910b067d6eee50f?shallow=1"; # need 2.5.7 before can update diff --git a/infra/talos/01b.us/.gitignore b/infra/talos/01b.us/.gitignore index f5a3f3f6..0c32294d 100644 --- a/infra/talos/01b.us/.gitignore +++ b/infra/talos/01b.us/.gitignore @@ -1,2 +1,4 @@ +talosconfig* +kubeconfig* secret* !secrets.enc diff --git a/infra/talos/01b.us/init-cluster.sh b/infra/talos/01b.us/init-cluster.sh index 02448d42..1c8d1963 100755 --- a/infra/talos/01b.us/init-cluster.sh +++ b/infra/talos/01b.us/init-cluster.sh @@ -4,6 +4,8 @@ if [ -d secrets ]; then echo "secrets directory already exists" exit 1 fi +echo "talosconfig*" >> .gitignore +echo "kubeconfig*" >> .gitignore echo "secrets*" >> .gitignore echo "!secrets.enc" >> .gitignore mkdir -p secrets @@ -21,23 +23,59 @@ talosctl --talosconfig=talosconfig config endpoint 10.10.0.42 10.10.8.188 10.10. talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.18.178 +talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.18.43 +talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.21.108 +talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.14.112 +talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.24.164 +talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.8.0 +talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.20.128 +talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.18.43 + # is this right? -talosctl --talosconfig=talosconfig config node 10.10.0.42 10.10.8.188 10.10.15.105 10.10.4.92 10.10.18.178 +talosctl --talosconfig=talosconfig config node 10.10.0.42 10.10.8.188 10.10.15.105 10.10.4.92 10.10.18.178 10.10.18.43 10.10.21.108 10.10.14.112 10.10.24.164 10.10.8.0 10.10.20.128 10.10.18.43 # talosctl --talosconfig=talosconfig config node 10.10.0.42 +# talosctl --talosconfig=talosconfig get members +# talosctl --talosconfig=talosconfig get nodestatus +talosctl --talosconfig=talosconfig get volumestatus +talosctl --talosconfig=talosconfig get machinestatus +# talosctl --talosconfig=talosconfig get service +talosctl --talosconfig=talosconfig get memorystats +# talosctl --talosconfig=talosconfig get endpoint +talosctl --talosconfig=talosconfig get diagnostic +talosctl --talosconfig=talosconfig get cpustat +# talosctl --talosconfig=talosconfig get blockdevice +# talosctl --talosconfig=talosconfig get route +talosctl --talosconfig=talosconfig get nodename +talosctl --talosconfig=talosconfig get nodetaintspec +# talosctl --talosconfig=talosconfig get nodeip +# talosctl --talosconfig=talosconfig get modules +# talosctl --talosconfig=talosconfig get hardwareaddress +# talosctl --talosconfig=talosconfig get endpoint +# talosctl --talosconfig=talosconfig get disk +# talosctl --talosconfig=talosconfig get info +# talosctl --talosconfig=talosconfig get identity +talosctl --talosconfig=talosconfig get hostname + +talosctl --talosconfig=talosconfig etcd status -n 10.10.8.188,10.10.15.105,10.10.4.92 # workers expected to fail + talosctl --talosconfig=talosconfig kubeconfig ./kubeconfig -n 10.10.0.42 # talosctl --talosconfig=talosconfig kubeconfig -n 10.10.0.42 + kubectl --kubeconfig=kubeconfig get nodes kubectl --kubeconfig=kubeconfig get nodes -o wide kubectl --kubeconfig=kubeconfig get deployments kubectl --kubeconfig=kubeconfig get pods kubectl --kubeconfig=kubeconfig create deployment hello-world --image=kicbase/echo-server:1.0 --dry-run=client -o yaml | kubectl --kubeconfig=kubeconfig apply -f - + kubectl --kubeconfig=kubeconfig get service hello-world kubectl --kubeconfig=kubeconfig describe deployment hello-world kubectl --kubeconfig=kubeconfig describe service hello-world kubectl --kubeconfig=kubeconfig get service hello-world + kubectl --kubeconfig=kubeconfig expose deployment hello-world --type=LoadBalancer --port=8080 + kubectl --kubeconfig=kubeconfig describe deployment hello-world kubectl --kubeconfig=kubeconfig describe service hello-world kubectl --kubeconfig=kubeconfig get service hello-world