External postgres database unreachable from kubernetes pods. #8500
NagenderSinghRathore
started this conversation in
General
Replies: 1 comment
-
Use DD_DATABASE_URL |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been trying to deploy Defectdojo on Kubernetes(AWS EKS) with RDS postgresql as database using helm.
Document referred: https://github.com/DefectDojo/django-DefectDojo/blob/master/readme-docs/KUBERNETES.md
Steps followed:
kubectl -n defectdojo create secret generic defectdojo-postgresql-specific --from-literal=postgresql-password=<rds-password> --from-literal=postgresql-postgres-password=<rds-password>
helm install defectdojo ./helm/defectdojo --namespace="defectdojo" --set django.ingress.enabled=false --set django.ingress.activateTLS=false --set createSecret=true --set createRabbitMqSecret=true --set createRedisSecret=true --set createMysqlSecret=false --set createPostgresqlSecret=false --set mysql.enabled=false --set postgresql.enabled=false --set postgresql.postgresServer="jdbc:postgresql://<rds-endpoint>:5432"
Now, I am getting below errors in the celery and django pods:
django.db.utils.OperationalError: could not translate host name "jdbc:postgresql://<rds-endpoint>:5432" to address: Name or service not known
.I spun up another pod in the same namespace and able to telnet to the rds-endpoint.
What am I missing here?
Would be really grateful for any help on this.
Beta Was this translation helpful? Give feedback.
All reactions