By Denis
Deployed a service in my DO k8s cluster. It is stunnel proxy with custom openssl build (GOST-engine for OpenSSL) which proxy traffic from localhost:8000 to removeserver:443
Randomly, if I try curl from the pod I get “Connection reset by peer error” message. I would say ratio it 1:2
For example:
/ # curl -X GET localhost:8000 -I
curl: (56) Recv failure: Connection reset by peer
/ # curl -X GET localhost:8000 -I
HTTP/1.1 200 OK
Server: nginx/1.14.0
Date: Thu, 19 Aug 2021 16:08:03 GMT
Content-Type: text/html
Content-Length: 89
Last-Modified: Fri, 12 Mar 2021 17:59:55 GMT
Connection: keep-alive
ETag: "604bac1b-59"
Strict-Transport-Security: max-age=15768000
Accept-Ranges: bytes
/ # curl -X GET localhost:8000 -I
curl: (56) Recv failure: Connection reset by peer
Tested that docker image elsewhere (locally, other cloud providers) outside Digital Ocean and it works fine. Can it be related to Droplets network configuration or blacklisted DO IPs?
Thank you.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
Do you have multiple pods running on your Kubernetes cluster for that service? As the ratio is 1:2 it sounds like that the traffic is hitting a problematic pod which is not responding.
I would recommend checking the state for all pods on the cluster to see if this is the case.
If not, I could also suggest running an mtr or a traceroute to see where the connections are being dropped exactly.
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.