Plain Docker Image Domain Name for Linking Apps Internally

truecharts

Guru
Joined
Aug 19, 2021
Messages
787
To be clear:
There is no such thing as "plain docker", the "Launch Docker Image" button is just another App behind the scenes.

As we didn't build it, someone else might be better suited to answer this, because there are quite a number of things that determine what the precise name would be.
 

mrcbns

Dabbler
Joined
Mar 24, 2022
Messages
10
it should be: <appname>-ix-chart.ix-<appname>.svc.cluster.local
Hope that helps
I created a postgres database app with Launch Docker Image and it works fine, I can reach it on the Truenas IP:PORT.
The app name is postgres-db.
The container port is 5432
The host exposed port is 9432.

So If I want to link this app to another one deployed with Launch Docker Image should I use this domain?

postgres-db-ix-chart.ix-postgres-db.svc.cluster.local

From the tests I made it is not working. Is there any way I could PING this domain from a custom image so I could check the domain is properly setup?
 

mrcbns

Dabbler
Joined
Mar 24, 2022
Messages
10
SOLVED
Make sure you change the defaul DNS policy in the container which is trying to connect to any other app inside the K3s cluster.


Screen_Shot_2022-03-29_at_5.57.00_PM.png
 
Top