I deployed a docker container trough docker-compose to my docker hub, then I made the pull of that image and I deployed on a k8s pod.
But the problem is that when the container starts, it doesn't make any signal that is connecting or detecting the env variables to connect to the mysql database that is on a AWS RDS.
When I make the "make up" on local, the container connects without problem.
I don't know what I'm missing.
This is my docker-compose:
metabase: container_name: metabase-app image: metabase/metabase:latest environment: - MB_DB_TYPE=mysql - MB_DB_DBNAME=dbname - MB_DB_PORT=3306 - MB_DB_USER=dbuser - MB_DB_PASS=dbpass - MB_DB_HOST=dbhost ports: - "3000:3000" volumes: - "./metabase-data:/metabase-data"
And this is my k8s deploy
spec: containers: - name: metabase image: mydockerhubrepo/mymetabaseimage:latest imagePullPolicy: Always ports: - containerPort: 3000
This is on localhost, on my machine connecting to the production database on mysql:
But on production, on the live server, not even an error, but it goes straight with the h2: