famous-traffic-65054
08/02/2022, 4:37 PM---
kind: Service
apiVersion: v1
metadata:
name: gameserver-db-postgresql
spec:
clusterIP: None
ports:
- port: 5432
---
kind: Endpoints
apiVersion: v1
metadata:
name: gameserver-db-postgresql
subsets:
- addresses:
- ip: 10.176.252.38
ports:
- port: 5432
name: gameserver-db-postgresql
I can clearly see that this endpoint shows up correctly and I even ran a netshoot pod in my namespace to ping that endpoint, and I'm able to do that correctly. However, the services in my namespace, they give error about failure to connect with the db. The same setup worked fine in the docker and KIND cluster. So I wanted to check if there's a way to expose an external database to be able to connect by the services running inside the cluster.
Any help would be highly appreciated!
Thanks,
Asheeshcurved-zebra-30454
08/02/2022, 5:35 PMfamous-traffic-65054
08/02/2022, 5:39 PM