Perry The Cynic
Dabbler
- Joined
- Aug 15, 2023
- Messages
- 34
I'm up to about ten "apps" running on my TrueNAS mini now, and they're mostly well-behaved and happy. When I change a configuration file for an app (mapped to a host path) - not the app's "internal" configuration through its UI - I usually need to then tell the app to reload its stuff. The actual commands differ - kill -HUP 1, rndc reload, apachectl graceful, etc. But they all require that I run some simple command inside the app's container.
There's perfectly fine UI for this: click the "get a shell" button in the app's panel and type in the relevant command. But what's the API for this? I searched far and wide and couldn't find it in the REST API; is it some midclt madness that only True TrueNAS Experts know how to find? (In which case, please help me out here...) To be clear, I want to automate this (from a GitOps harness that actually manages the configuration files), so "type this into a terminal window" isn't a good answer.
(There's also the option to find the pod's name and kubectl exec the command, but I assume that's a violation of the sacred API boundary...)
So... what are my options?
Thanks
-- perry
There's perfectly fine UI for this: click the "get a shell" button in the app's panel and type in the relevant command. But what's the API for this? I searched far and wide and couldn't find it in the REST API; is it some midclt madness that only True TrueNAS Experts know how to find? (In which case, please help me out here...) To be clear, I want to automate this (from a GitOps harness that actually manages the configuration files), so "type this into a terminal window" isn't a good answer.
(There's also the option to find the pod's name and kubectl exec the command, but I assume that's a violation of the sacred API boundary...)
So... what are my options?
Thanks
-- perry