Skip to content

Commit 1bfd1b4

Browse files
committed
update
1 parent 709a737 commit 1bfd1b4

3 files changed

Lines changed: 42 additions & 2 deletions

File tree

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ rec {
3232
#url = "github:Svenum/Solaar-Flake/main"; # Uncomment line for latest unstable version
3333
inputs.nixpkgs.follows = "nixpkgs";
3434
};
35-
# "git+https://github.com/NixOS/nixpkgs?shallow=1&ref=nixpkgs-unstable";
35+
# TODO: ?? use git instead of github ?? "git+https://github.com/NixOS/nixpkgs?shallow=1&ref=nixpkgs-unstable";
3636
rose-pine-hyprcursor.url = "github:ndom91/rose-pine-hyprcursor?shallow=1";
3737
nixos-facter-modules.url = "github:numtide/nixos-facter-modules?shallow=1";
3838
affinity-nix.url = "github:mrshmllow/affinity-nix/c17bda86504d6f8ded13e0520910b067d6eee50f?shallow=1"; # need 2.5.7 before can update

infra/talos/01b.us/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
talosconfig*
2+
kubeconfig*
13
secret*
24
!secrets.enc

infra/talos/01b.us/init-cluster.sh

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ if [ -d secrets ]; then
44
echo "secrets directory already exists"
55
exit 1
66
fi
7+
echo "talosconfig*" >> .gitignore
8+
echo "kubeconfig*" >> .gitignore
79
echo "secrets*" >> .gitignore
810
echo "!secrets.enc" >> .gitignore
911
mkdir -p secrets
@@ -21,23 +23,59 @@ talosctl --talosconfig=talosconfig config endpoint 10.10.0.42 10.10.8.188 10.10.
2123

2224
talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.18.178
2325

26+
talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.18.43
27+
talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.21.108
28+
talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.14.112
29+
talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.24.164
30+
talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.8.0
31+
talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.20.128
32+
talosctl apply-config --insecure --file "./worker.yaml" --nodes 10.10.18.43
33+
2434
# is this right?
25-
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
35+
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
2636
# talosctl --talosconfig=talosconfig config node 10.10.0.42
2737

38+
# talosctl --talosconfig=talosconfig get members
39+
# talosctl --talosconfig=talosconfig get nodestatus
40+
talosctl --talosconfig=talosconfig get volumestatus
41+
talosctl --talosconfig=talosconfig get machinestatus
42+
# talosctl --talosconfig=talosconfig get service
43+
talosctl --talosconfig=talosconfig get memorystats
44+
# talosctl --talosconfig=talosconfig get endpoint
45+
talosctl --talosconfig=talosconfig get diagnostic
46+
talosctl --talosconfig=talosconfig get cpustat
47+
# talosctl --talosconfig=talosconfig get blockdevice
48+
# talosctl --talosconfig=talosconfig get route
49+
talosctl --talosconfig=talosconfig get nodename
50+
talosctl --talosconfig=talosconfig get nodetaintspec
51+
# talosctl --talosconfig=talosconfig get nodeip
52+
# talosctl --talosconfig=talosconfig get modules
53+
# talosctl --talosconfig=talosconfig get hardwareaddress
54+
# talosctl --talosconfig=talosconfig get endpoint
55+
# talosctl --talosconfig=talosconfig get disk
56+
# talosctl --talosconfig=talosconfig get info
57+
# talosctl --talosconfig=talosconfig get identity
58+
talosctl --talosconfig=talosconfig get hostname
59+
60+
talosctl --talosconfig=talosconfig etcd status -n 10.10.8.188,10.10.15.105,10.10.4.92 # workers expected to fail
61+
2862
talosctl --talosconfig=talosconfig kubeconfig ./kubeconfig -n 10.10.0.42
2963
# talosctl --talosconfig=talosconfig kubeconfig -n 10.10.0.42
64+
3065
kubectl --kubeconfig=kubeconfig get nodes
3166
kubectl --kubeconfig=kubeconfig get nodes -o wide
3267
kubectl --kubeconfig=kubeconfig get deployments
3368
kubectl --kubeconfig=kubeconfig get pods
3469

3570
kubectl --kubeconfig=kubeconfig create deployment hello-world --image=kicbase/echo-server:1.0 --dry-run=client -o yaml | kubectl --kubeconfig=kubeconfig apply -f -
71+
3672
kubectl --kubeconfig=kubeconfig get service hello-world
3773
kubectl --kubeconfig=kubeconfig describe deployment hello-world
3874
kubectl --kubeconfig=kubeconfig describe service hello-world
3975
kubectl --kubeconfig=kubeconfig get service hello-world
76+
4077
kubectl --kubeconfig=kubeconfig expose deployment hello-world --type=LoadBalancer --port=8080
78+
4179
kubectl --kubeconfig=kubeconfig describe deployment hello-world
4280
kubectl --kubeconfig=kubeconfig describe service hello-world
4381
kubectl --kubeconfig=kubeconfig get service hello-world

0 commit comments

Comments
 (0)