<p>I'm running a SSE server on a VPS and it works perfectly, no problems at all, but due to scalability reasons I needed to move it to another server.</p>

<p>I moved the server to <strong>Google Cloud Platform/Google Container Engine</strong> and <strong>Kubernetes/Ingress</strong>. But now I've encountered that I can't keep a SSE connection effectively, it's completely unstable and it closes connections by itself.</p>

<p>Is there anything special I have to do to run a <strong>SSE</strong> server over <strong>Kubernetes/Ingress</strong>?</p>

<p>I assume my code/software runs perfect and that is not the issue, due it works perfectly in Kubernetes, VPS, on my machine, everywhere, just not when I add the Ingress configuration, and I'm doing this because I want <strong>HTTPS</strong> over the <strong>Kubernetes</strong> <strong>load-balancer</strong>.</p>

<p>Got it working by adding a long time on the timeout: 86,400 seconds. This is because it is a socket connection that needs to stay open and not a normal connection that would require less than 30 seconds to execute.</p>
