Giter Club home page Giter Club logo

k8s-connection-reset's Introduction

k8s-connection-reset

Sharing code to reproduce an issue with Kubernetes

Requisites

To install the following code you'll need

  • A kubernetes cluster.
  • kubectl.

Install steps to reproduce the issue

Deploying with skaffold

If you have skaffold installed.

$ skaffold run
# or
$ skaffold dev

Deploying with kubectl

$ kubectl apply -f kube

⚠️ Important note ⚠️

Some of the clients pod must be scheduled on a different node (it can be just one different node) to reproduce the issue.

We identified that when everything was scheduled on only one node the problem was harder to reproduce.

Identifying the issue

Check on Stackdriver logging the log from the server and client. on the search bar you can set text:'reset by peer' and you'll see the following errors:

# Error reported by the server
E  [info] 11#11: *21885 client 10.20.6.249 closed keepalive connection (104: Connection reset by peer)
# Error reported by the client
E  curl: (56) Recv failure: Connection reset by peer

Both line should follow each other. If the client and the server are not reporting at the same time a Connection reset by peer you can ignore the event as it might be something else.

Troubleshooting

If the clients seem stuck feel free to restart the pods like the following kubectl delete pod -l app=client

Links

Relates to:

k8s-connection-reset's People

Contributors

tcarmet avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.