Naman1997 / simple-talos-cluster

Automated Talos cluster with system extensions in a Proxmox node.
MIT License
27 stars 6 forks source link

Use the IP addresses of the nodes to create a talos cluster #5

Closed Naman1997 closed 1 year ago

Naman1997 commented 1 year ago

Top level process looks something like this:

#!/bin/bash
talosctl gen config mycluster https://192.168.0.117:6443
talosctl apply-config --insecure --nodes 192.168.0.117 --file controlplane.yaml
sleep 30
talosctl bootstrap --nodes 192.168.0.117 -e 192.168.0.117 --talosconfig=./talosconfig
sleep 30
talosctl kubeconfig --nodes 192.168.0.117 -e 192.168.0.117 --talosconfig=./talosconfig
# Wait for control plane to come up
Naman1997 commented 1 year ago

Updated with comments

#!/bin/bash
talosctl gen config mycluster https://192.168.0.101:6443 # Load balancer IP [HA Proxy!]
talosctl apply-config --insecure --nodes 192.168.0.155 --file controlplane.yaml
talosctl apply-config --insecure --nodes 192.168.0.154 --file worker.yaml
sleep 30
talosctl bootstrap --nodes 192.168.0.155 -e 192.168.0.155 --talosconfig=./talosconfig # Probably only need to bootstap using 1 controller node - need to check this
sleep 30
talosctl kubeconfig --nodes 192.168.0.155 -e 192.168.0.155 --talosconfig=./talosconfig
# Wait for control plane to come up