Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dezren39 committed Dec 22, 2024
1 parent 709a737 commit 1bfd1b4
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions infra/talos/01b.us/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
talosconfig*
kubeconfig*
secret*
!secrets.enc
40 changes: 39 additions & 1 deletion infra/talos/01b.us/init-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1bfd1b4

Please sign in to comment.