Giter Site home page Giter Site logo

kubectl exec/log timeout about kubeedge HOT 3 OPEN

Threes333 avatar Threes333 commented on May 25, 2024
kubectl exec/log timeout

from kubeedge.

Comments (3)

WillardHu avatar WillardHu commented on May 25, 2024

The tunnel ports provided by each edge node are different(10350++). You can schedule the cloudcore(inner iptables manager) to the control-plane node or deploy the iptables-manager to the control-plane node.

from kubeedge.

Threes333 avatar Threes333 commented on May 25, 2024

The tunnel ports provided by each edge node are different(10350++). You can schedule the cloudcore(inner iptables manager) to the control-plane node or deploy the iptables-manager to the control-plane node.

Thanks for your reply!

Yes,I schedule the cloudcore to the control-plane node and set iptables manually,but I have a problem that when the address in my tunnelport configmap is the same as the address I used when deploying cloudcore is, ''kubectl exec'' can run normally, but it can't run at the different time, for example, when the content of the tunnelport configmap is:

# kubectl get cm tunnelport -nkubeedge -oyaml
apiVersion: v1
kind: ConfigMap
metadata:
annotations:
tunnelportrecord.kubeedge.io: '{"ipTunnelPort":{"192.168.142.6":10351},"port":{"10351":true}}'
and the address I used when deploying cloudcore is: 100.64.93.127 ,''kubectl exec'' will report an error:

# kubectl exec -it edge-pod -n kubeedge -- /bin/bash
Error from server:

and the edge node will be not ready

from kubeedge.

WillardHu avatar WillardHu commented on May 25, 2024

The tunnel ports provided by each edge node are different(10350++)

Sorry, this is an incorrect description. Each CloudCore restart causes tunnelPort +1(10350, 10351, 10352 ...), which seems to be a historical issue.

From your description, it seems the port 10351 should be DNAT to the stream service, you can look at the iptables rules.

from kubeedge.

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.