<p>I've installed pgAdmin (<a href="https://artifacthub.io/packages/helm/runix/pgadmin4" rel="nofollow noreferrer">https://artifacthub.io/packages/helm/runix/pgadmin4</a>) in my k8s cluster. Using port-forwarding I can access the web interface of pgAdmin, but I want to use <code>kubectl proxy</code> instead of <code>kubectl port-forward</code> because when using port forwarding the connection is not stable enough (see the problems with <code>lost connection to pod</code>). So I hope <code>kubectl proxy</code> is more stable, but my problem is when I run <code>kubectl proxy</code> and try to access pgAdmin, I'm getting the following error in my browser:</p>
<p><code>stream error: stream ID 5; INTERNAL_ERROR</code></p>
<p>I'm using the following url to access pgAdmin: <code>http://localhost:8001/api/v1/namespaces/default/services/pgadmin-pgadmin4:80/proxy</code>. Since the browser is already being redirected to <code>http://localhost:8001/api/v1/namespaces/default/services/pgadmin-pgadmin4:80/proxy/login?next=%2F</code> (not the last part), I know that pgAdmin is working, but I've no idea how to solve the <code>INTERNAL ERROR</code> issue. When I check the console that runs the <code>kubectl proxy</code> command, the output is the following:</p>
<pre><code>Starting to serve on 127.0.0.1:8001
E0212 17:56:51.338567   41088 proxy_server.go:147] Error while proxying request: stream error: stream ID 5; INTERNAL_ERROR
</code></pre>
<p>Any idea how to fix this issue? An alternative would be to have a stable port-forwarding, but it seems that there's only the &quot;while-true&quot;-solution to restart the port-forwarding whenever the connection to the pod has been lost.</p>

Nrgyzer
<p>It seems that few filters / rules are obstructing your access to pgAdmin from kubernettes cluster. This can be resolved by removing the filters. Use the below command for connecting pgAdmin without any filters.</p>
<pre><code>kubectl proxy --address='0.0.0.0' --disable-filter=true
</code></pre>
