Skip to content

Commit

Permalink
bad
Browse files Browse the repository at this point in the history
  • Loading branch information
dezren39 committed Dec 21, 2024
1 parent 58d6e82 commit 397e361
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 16 deletions.
4 changes: 3 additions & 1 deletion infra/talos-core/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.yaml
01b.us*
+01b.us.enc
!01b.us.enc
!01b.us-*.sh
!01b.us_*.sh
25 changes: 25 additions & 0 deletions infra/talos-core/01b.us-init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
if [ -d 01b.us ]; then
echo "01b.us directory already exists"
exit 1
fi
echo "*.yaml" >> .gitignore
echo "01b.us*" >> .gitignore
echo "!01b.us.enc" >> .gitignore
echo "!01b.us-*.sh" >> .gitignore
echo "!01b.us_*.sh" >> .gitignore
mkdir -p 01b.us
talosctl gen secrets -o ./01b.us/secrets.yaml
talosctl gen config --with-secrets ./01b.us/secrets.yaml 01b.us https://vip.01b.us:6443 -o 01b.us
./01b.us-save.sh
talosctl apply-config --insecure --file "./01b.us/controlplane.yaml" --nodes 10.10.2.185,10.10.30.13,10.10.4.114
talosctl apply-config --insecure --file "./01b.us/worker.yaml" --nodes 10.10.13.212,10.10.9.224,10.10.18.238,10.10.26.178,10.10.4.187,10.10.14.89,10.10.29.103
talosctl --talosconfig=./01b.us/talosconfig config endpoint 10.10.2.185 10.10.30.13 10.10.4.114
talosctl config merge ./01b.us/talosconfig
talosctl bootstrap --talosconfig ./01b.us/talosconfig --nodes 10.10.2.185 --insecure
# export CONTROL_PLANE_IP=vip.01b.us # use controller nodes directly if etcd is not available
# talosctl config endpoint $CONTROL_PLANE_IP
# talosctl config node $CONTROL_PLANE_IP
talosctl kubeconfig
kubectl get nodes
./01b.us-save.sh
6 changes: 6 additions & 0 deletions infra/talos-core/01b.us-load.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
if [ -d 01b.us ]; then
echo "01b.us directory already exists"
exit 1
fi
sops --decrypt 01b.us.enc | base64 -d | tar xzf -
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
tar czf - ./01b.us | base64 > 01b.us.tmp
sops --encrypt 01b.us.tmp > 01b.us.enc
rm 01b.us.tmp
20 changes: 20 additions & 0 deletions infra/talos-core/01b.us.enc

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions infra/talos-core/init-01b.us.sh

This file was deleted.

1 change: 0 additions & 1 deletion infra/talos-core/load-01b.us.sh

This file was deleted.

0 comments on commit 397e361

Please sign in to comment.