Deploying a Flask API and MongoDB on Kubernetes
Prerequisites
Before we get started, make sure you have the following tools and services installed and configured:
π Two AWS EC2 instances with Ubuntu 20.04 LTS installed of instance type t2.medium
π Setting up Kubernetes Cluster
1οΈβ£ Deploying the ...
ritul.hashnode.dev3 min read
Unable to test <ip>:30007/tasks. Getting following error. Do you know how to fix it? File "/usr/local/lib/python3.7/site-packages/pymongo/topology.py", line 270, in _select_servers_loop f"{self._error_message(selector)}, Timeout: {timeout}s, Topology Description: {self.description!r}" pymongo.errors.ServerSelectionTimeoutError: mongo:27017: [Errno -3] Try again, Timeout: 30s, Topology Description: <TopologyDescription id: 652ac5e9c8103fa08f066178, topology_type: Unknown, servers: [<ServerDescription ('mongo', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('mongo:27017: [Errno -3] Try again')>]> 10.32.0.1 - - [14/Oct/2023 17:01:47] "GET /tasks HTTP/1.1" 500 - Internal Server Error