28 lines
907 B
Bash
Executable file
28 lines
907 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
echo "Applying configs to nodes..."
|
|
|
|
echo " Applying config to talos-cp-1 (10.0.0.101)"
|
|
talosctl apply-config --insecure --nodes 10.0.0.101 --file nodes/cp-1.yaml --mode=auto
|
|
|
|
echo " Applying config to talos-cp-2 (10.0.0.102)"
|
|
talosctl apply-config --insecure --nodes 10.0.0.102 --file nodes/cp-2.yaml --mode=auto
|
|
|
|
echo " Applying config to talos-cp-3 (10.0.0.103)"
|
|
talosctl apply-config --insecure --nodes 10.0.0.103 --file nodes/cp-3.yaml --mode=auto
|
|
|
|
echo ""
|
|
echo "Configs applied! Nodes will reboot and configure themselves."
|
|
echo "Wait about 2-3 minutes, then run:"
|
|
echo ""
|
|
echo " # Merge talosconfig"
|
|
echo " talosctl config merge talosconfig"
|
|
echo ""
|
|
echo " # Bootstrap the cluster (only run once!)"
|
|
echo " talosctl bootstrap --nodes 10.0.0.101"
|
|
echo ""
|
|
echo " # Check cluster health"
|
|
echo " talosctl health --nodes 10.0.0.101,10.0.0.102,10.0.0.103"
|