Replies: 2 comments 1 reply
-
|
Kernel args and remote Talos config are meant for bootstrapping and not long term maintenance or upgrades. Since the bootstrapping application is passive it doesn't seem like it is able to directly call the talos API to update the configuration automatically which is probably the best place to put this logic and lifecycle management. Your script looks exactly how I would implement this logic from the client side. This is exactly why we built Omni. It manages the patches for you, and automatically applies them to the machines when an update happens. |
Beta Was this translation helpful? Give feedback.
-
|
I get that. I just wish there was a way to tell the nodes to 'pull' a config during runtime instead of a push. You can see my script is hacky. Change one minor bit of output from talosctl and the thing will blow up. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been playing around with Talos for a few months now and love it.
Nodes are set up to PXE boot passing
talos.config=http://10.74.2.253/talos/${mac}/to get their config.The app that's listening for http requests looks at the MAC address and hands out a templatized config file that determines if the node is a controlplane or worker node, what region/zone it's in, and apply a few other metedata labels (like if it has spinning rust, SSD, or NVMe storage).
After making changes to the config, it's a bit of a hassle to get all the nodes updated. I basically have to curl that file on behalf of the node, and then apply it.
i.e. this:
Hacky as heck.
I'm not sure if the nodes "remember" their
talos.configsetting after installing, but I'd love to simply calltalosctl apply-configand have them re-poll that address.Or at the very least be able to call
talosctl apply-config -u "http://10.74.2.253/talos/${mac}/"and have them pull their updated config.The slightly less risky way to update their config is that I simply
talosctl reset -n 1.2.3.4 --wipe-mode all --rebootnode by node and let them update/reinstall while shuffling workloads around. That's somewhat excessive for small config changes that don't need a reboot. :)Beta Was this translation helpful? Give feedback.
All reactions