I’m trying to deploy a custom app via the REST API on Truenas Scale (Dragonfish-24.04.2.5). I looked at the documentation of the REST API and it looks like I have to send a POST to the endpoint “/chart/release”. I am, however, uncertain about what to put into the payload of the request.
After asking different LLMS I ended up with something like this:
This seems to be okay in the sense that the returned status code is 200 and the returned text is something like “18356” which seems to be some kind of ID (it increments on every try). But other than that nothing happens. I.e., I can’t see any deployment created in the Web UI or via kubectl in the root shell.
I also tried several other variations of the payload, which all lead to the same result.
Does anyone know, how to deploy apps via the REST API? And how does it work for custom apps? Thanks in advance for your effort!
For now I’m stuck with Dragonfish. I’m talking about the setup we use at work and we will not have the capacity to upgrade the server anytime soon. Or at least not soon enough.
Okay, that sounds reasonable. I will wait with this, until we have updated to electric eel.
For future reference: Will the payload of the API call then be like the corresponding docker-compose.yaml? I.e., something like this for a postgres container