B9eapf8hxSugJA80OjyE
Dabbler
- Joined
- Sep 11, 2021
- Messages
- 11
Hi,
I'm thoroughly confused about what the "custom app" function can do. I'm talking about the built-in Apps/Discover/Custom App UI, not the Truecharts Custom App chart.
I was looking for a way to run a simple web server on TN Scale, and after reading a lot of posts about complicated and not completely well-integrated ways to run a Docker container (hacks, Truecharts' docker-compose), I stumbled upon this "custom app" button. On the surface, it asks questions very similar to how one would configure a single service in docker-compose, which I'm familiar with. So can it run a simple Docker image? But all posts and docs I've read so far have been telling me how Docker and Kubernetes shouldn't mix, and how difficult it is to run Docker images... did I misunderstand them? Or does it run Heml/Kubernetes or whatever "apps" - now that I don't know anything about.
According to the docs (https://www.truenas.com/docs/scale/23.10/scaletutorials/apps/usingcustomapp/), I'm supposed to provide a link to a GitHub repo under "image repository"... but aren't docker images the likes of DockerHub instead of GitHub? What is supposed to be in the GitHub repo?
Anyway, I added a link to nginx image on DockerHub here and installed the app. On the surface (=UI), nothing happened, no sign of any new app whatever. `k3s kubectl get namespace` showed me, however, that my app was created, and it's pod has failed to start with the status "invalidimagename". To me that suggests that the DockerHub URL was not the right choice after all.
So, can anyone explain to me how to use this functionality? The official docs are useless to me, as they don't explain the above key points. It could be a link to an example of a working custom app. Any help would be appreciated.
Add1: Also, how can I delete the previously installed custom app? There's nothing about it on the UI. I'm OK with using the CLI, but I'm unfamiliar with how kubernetes apps can be removed completely.
I'm thoroughly confused about what the "custom app" function can do. I'm talking about the built-in Apps/Discover/Custom App UI, not the Truecharts Custom App chart.
I was looking for a way to run a simple web server on TN Scale, and after reading a lot of posts about complicated and not completely well-integrated ways to run a Docker container (hacks, Truecharts' docker-compose), I stumbled upon this "custom app" button. On the surface, it asks questions very similar to how one would configure a single service in docker-compose, which I'm familiar with. So can it run a simple Docker image? But all posts and docs I've read so far have been telling me how Docker and Kubernetes shouldn't mix, and how difficult it is to run Docker images... did I misunderstand them? Or does it run Heml/Kubernetes or whatever "apps" - now that I don't know anything about.
According to the docs (https://www.truenas.com/docs/scale/23.10/scaletutorials/apps/usingcustomapp/), I'm supposed to provide a link to a GitHub repo under "image repository"... but aren't docker images the likes of DockerHub instead of GitHub? What is supposed to be in the GitHub repo?
Anyway, I added a link to nginx image on DockerHub here and installed the app. On the surface (=UI), nothing happened, no sign of any new app whatever. `k3s kubectl get namespace` showed me, however, that my app was created, and it's pod has failed to start with the status "invalidimagename". To me that suggests that the DockerHub URL was not the right choice after all.
So, can anyone explain to me how to use this functionality? The official docs are useless to me, as they don't explain the above key points. It could be a link to an example of a working custom app. Any help would be appreciated.
Add1: Also, how can I delete the previously installed custom app? There's nothing about it on the UI. I'm OK with using the CLI, but I'm unfamiliar with how kubernetes apps can be removed completely.