title: ConnectionError: ('Connection aborted.', error(104, 'Connection reset by peer')) in python while placing GET request
body: <p>In my python script, when it tries to place a GET request from remote machine to a service running inside a kubernetes pod (test-pod), I am getting the below error:</p>
  <pre><code>unapiflaskapp.get_from_server: ERROR: GET from server: request 'https://test-pod:9906/statuses' got error
  
  ConnectionError: ('Connection aborted.', error(104, 'Connection reset by peer'))
  </code></pre>
  <p>The service running inside test-pod will be listening on 9906 port.
  Netstat output inside a container where this service binded to 9906 port (10.92.120.6 - remote machine ip from where GET request will come from and 10.30.4.20 which is eth1 ip inside container where the port is binded to):</p>
  <pre><code>[root@test-pod ]# netstat -talpn|grep 9906
  tcp        0      0 127.0.0.1:9906          0.0.0.0:*               LISTEN      -
  tcp        0      0 10.30.4.20:9906         0.0.0.0:*               LISTEN      -
  tcp        0   1840 10.30.4.20:9906         10.92.120.6:33898       ESTABLISHED -
  tcp        0   1841 10.30.4.20:9906         10.92.120.6:59972       LAST_ACK    -
  tcp        0   1841 10.30.4.20:9906         10.92.120.6:60544       LAST_ACK    -
  tcp        0   1841 10.30.4.20:9906         10.92.120.6:59452       LAST_ACK    -
  tcp        0   1841 10.30.4.20:9906         10.92.120.6:32840       LAST_ACK    -
  </code></pre>
  <p>but the telnet connection got success from remote machine to test-pod:</p>
  <pre><code>root@remote_machine$ telnet 10.92.50.19 9906
  Trying 10.92.50.19...
  Connected to 10.92.50.19.
  Escape character is '^]'.
  </code></pre>
  <p>10.92.50.19 is eth1 interface ip in my workernode which is bridged using ipvlan to 10.30.4.20 which is eth1 ip inside container where the port is binded to.</p>
  <p>It would be really helpful if someone helps me out to understand this issue and find a fix for the same. Hope anyone helps me with this issue. Thanks in advance!</p>