<p>I am new to the concepts of Flask and k8s and trying to implement a very simple Flask server via k8s for getting familiar with the concept.
Am able to access it via NodePort. But after adding ingress service and tweaking my host file in windows machine. When I tried to access the host URL, which I added in ingress-srv.yaml, I am getting a 404 error.</p>

<p>Here is the project Github link: <a href="https://github.com/bijay-ps/flask-poc" rel="nofollow noreferrer">https://github.com/bijay-ps/flask-poc</a></p>

<p>can someone help me out??</p>

Bijay Singh
<ol>
<li>You need to describe which k8s you are using. (ex. minikube, gcp, azure etc) And version of client and server</li>
</ol>

<pre><code>$ kubectl version                 
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.3", GitCommit:"2d3c76f9091b6bec110a5e63777c332469e0cba2", GitTreeState:"clean", BuildDate:"2019-08-19T12:36:28Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"17+", GitVersion:"v1.17.5-gke.6", GitCommit:"de3e4dcd39464bc1601edd66681e663bff1fe530", GitTreeState:"clean", BuildDate:"2020-05-12T16:10:21Z", GoVersion:"go1.13.9b4", Compiler:"gc", Platform:"linux/amd64"}
</code></pre>

<ol start="2">
<li>Make sure you install <a href="https://kubernetes.github.io/ingress-nginx/deploy/#contents" rel="nofollow noreferrer">Nginx Ingress Controller</a>. There's no default(pre-installed) ingress.</li>
</ol>

<pre><code>kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-0.32.0/deploy/static/provider/cloud/deploy.yaml
</code></pre>

<ol start="3">
<li>Your yaml configs looks ok.</li>
</ol>
