This message was deleted.
# k3s
a
This message was deleted.
c
No, that would probably best be a job for a logging+alerting system
s
OK, do you know of any good ones that I should look into?
c
The SUC pod will log when it takes action, you could trigger an alert off that
👀 1
q
I have made a prepare step that sends a pushover notification when it starts upgrading. You could do something like that, but it's not really elegant 🙂
s
I don't understand what you mean by "prepare step".
q
SUC is not really well documented, but a plan can have a
prepare
step, which runs a command in an image. The k3s-upgrade plans use a prepare step in the agent plan, but not on the server plan. So I added my own prepare step to the server plan that just runs a scripts that sends a pushover notification.
s
Oh, I see. So it's kind of like an unused hook. I see why it's not elegant, and why it works. Thanks for the tip! It would be awesome to be able to add our own "pre-upgrade" hooks that do not override the
prepare
step.
1
If I go with the log-scraping route that @creamy-pencil-82913 suggested, which software solutions exist for that? I would love to learn something new here, but I don't have time to evaluate too many different options (assuming there are multiple options).