Git Product home page Git Product logo

Comments (6)

solsson avatar solsson commented on August 28, 2024

What kind of k8s cluster is it you're using? Do you mean the kind of rolling update that was new to StatefulSet in 1.7?

Have you tried execing into the failing brokers to try ping/curl, or do they die too fast for that?

from kubernetes-kafka.

stevenpall avatar stevenpall commented on August 28, 2024

@solsson This is a private topology AWS cluster. And yes, I mean the rolling update mechanism introduced for StatefulSets in 1.7. That said, I was also seeing this behaviour when I was previously manually deleting pods.

I have execd into the pods, and they are unable to reach any external addresses (including intra-cluster) which is very odd to me. I also checked that other pods on the same node could still reach the network, and they could. This is also not isolated to a single machine which makes me think there is either a bug with something this Kafka image is doing or with the way in which Kubernetes is handing the associated StatefulSets.

from kubernetes-kafka.

solsson avatar solsson commented on August 28, 2024

I have no clue but I can keep guessing :) Can they ping cluster IPs, external IPs? I've seen issues with Kubernetes networking, in particular DNS resolution, on Alpine based images (mentioned in #46 and solsson/dockerfiles#5). What kind of Kafka image are you using?

from kubernetes-kafka.

stevenpall avatar stevenpall commented on August 28, 2024

Sorry, I think this might actually be related to the CNI provider I'm using (Calico). I found this chain of related issues/PRs: kubernetes/kops#2538. I'll test with the updated version of Calico and report back.

Thanks!

from kubernetes-kafka.

stevenpall avatar stevenpall commented on August 28, 2024

Got this figured out. As those issues mention, there was a race condition in the Calico policy controller that would add and then remove new pod endpoints (when the opposite was supposed to happen). I updated to calico/node:v2.6.1 and calico/cni:v1.8.3 in the calico-node daemonset and to calico/kube-policy-controller:master in calico-policy-controller deployment. Since then I've had no issues with running rolling restarts of Kafka and Zookeeper StatefulSets.

from kubernetes-kafka.

eskuai avatar eskuai commented on August 28, 2024

I am using weave and i got the same problem
ports are open 2888 and 3888
i am trying usin a hs service, and the same problem

from kubernetes-kafka.

Related Issues (20)

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.