Sign inSign up

vineethac/python-flask-simple-webapp

By vineethac

•Updated almost 3 years ago

Simple web app using Python Flask.

Image
0

177

vineethac/python-flask-simple-webapp repository overview

⁠To run this web application as a pod on Kubernetes

kubectl run webapp --image=vineethac/python-flask-simple-webapp -n default

⁠To port forward the application from your localhost

kubectl port-forward pod/webapp -n default 8080:5000

⁠From the localhost machine you can open another terminal and verify

❯ curl http://127.0.0.1:8080      
Welcome to flask!  
❯   
❯ curl http://127.0.0.1:8080/hello  
Hello, this is a response from flask!  
❯

⁠Reference

https://github.com/vineethac/Docker/tree/main/python-flask⁠

Tag summary

Content type

Image

Digest

sha256:5ebd12de4…

Size

194.6 MB

Last updated

almost 3 years ago

docker pull vineethac/python-flask-simple-webapp