Metabase Connection timeout for mongodb cluster

metabase is throwing connection timeout after some seconds on a kubernetes cluster even if there is a mongodb connectivity between metabase pods to the database ?