-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
55 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 - |
1 change: 1 addition & 0 deletions
1
infra/talos-core/save-01b.us.sh → infra/talos-core/01b.us-save.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.