Mongodb Express not working in kubernetes

Viewed 17

I'm trying to import data after cleaning into Mongodb using python (pymongo), so i tried to connect into mongodb in jupyter like :

db_local= pymongo.MongoClient("mongodb://mongo-express-service.default.svc.cluster.local:30017")

When i try to check the Collection in mongodb with this code, i get an error:

test = pd.DataFrame(list(hdfs.find())


mongo-express-service.default.svc.cluster.local:30017 : timed out, Timeout: 30s, Topology Description: <TopologyDescription id ..> server_type: Unknown, rtt: None, error= NetworkTimeout..

kubectl get svc :

enter image description here

Mongodb anf jupyter are deployed in minikube!

0 Answers
Related