SnoppyFloppy
Explorer
- Joined
- Jun 17, 2021
- Messages
- 77
Hi
I come from docker/docker-compose and I'm new to Kubernetes.
I want to deploy two containers using the "Launch Docker Image"-functionality. One container being an maria-db and the other being an app that relies on the db during deployment.
The app-image has an env. variable "DB_HOST" where, in docker, I would just specity the name of the db-container and if I put the the containers on the same custom bridge network, the app could reach the db using dockers internal DNS.
During the TrueNAS deployment I don't see an option to put the containers on the same internal network, and though I specified the env. var.
I found this within the truecharts documentation. but using
Any advises?
I come from docker/docker-compose and I'm new to Kubernetes.
I want to deploy two containers using the "Launch Docker Image"-functionality. One container being an maria-db and the other being an app that relies on the db during deployment.
The app-image has an env. variable "DB_HOST" where, in docker, I would just specity the name of the db-container and if I put the the containers on the same custom bridge network, the app could reach the db using dockers internal DNS.
During the TrueNAS deployment I don't see an option to put the containers on the same internal network, and though I specified the env. var.
DB_HOST=<DB app. name>
the app is unable to contact the db and thus fails to deploy.I found this within the truecharts documentation. but using
<DB app. name>.ix-<DB app. name>.svc.cluster.local
or <DB app. name>.ix-<DB app. name>
doesn't resolve my problem.Any advises?