I am trying to bring up a python flask application using gunicorn. I am referring to this code to create an image and then bring up a pod/deployment/service on GKE.
Pod bring up fails on GKE with "ContainersReady: False". On probing ContainerLogs i could see following error
Error: '' is not a valid port number
i have changed the dockerfile and rebuild the image by changing the following, but it error remains same.
CMD exec gunicorn --bind 0.0.0.0:8000 --workers 1 --threads 8 --timeout 0 main:app
i guess i am missing something basic here. Not sure what is it..