'Cannot access my kubernetes cluster with a browser

I'm new to Kubernetes, I'm trying to access a python flask app running on a Kubernetes cluster via a web browser. But whenever I use the external service, it displays the following message and my web app wouldn't load. "! Because you are using a Docker driver on windows, the terminal needs to be open to run it."

Here is the manifest for the deployment and the service,

apiVersion: apps/v1
kind: Deployment
metadata:
   name: python-depl
   labels:
    app: python
spec:
   selector:
    matchLabels:
      app: python
   replicas: 1
   template:
    metadata:
     labels:
      app: python
    spec: 
     containers:
     - name: container01
       image: karthik379/test:latest
       ports:
       - containerPort: 5000

apiVersion: v1
kind: Service
metadata:
   name: python-service
spec:
   selector:
    app: python
   type: LoadBalancer
   ports:
    - protocol: TCP
      port: 5000
      targetPort: 5000
 


 


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source