Giter VIP home page Giter VIP logo

Comments (3)

gosharplite avatar gosharplite commented on May 19, 2024

dtab seems to work.

dtab

Call hello directly from an ubuntu pod inside k8s does not work.

root@ubuntu:/# curl -s http://10.2.11.102:7777
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.</p>

from linkerd-examples.

adleong avatar adleong commented on May 19, 2024

Hi @gosharplite! Are you using CNI in your k8s cluster? If so, you'll need to set hostNetwork: true on your linkerd pods in the daemonset config as well as set hostNetwork: true on the io.l5d.k8s.daemonset transformer and io.l5d.k8s.localnode transformer in the linkerd configs.

Here's an example config that sets hostNetwork: true in those places: https://github.com/apprenda/kismatic/blob/master/ansible/roles/addon-linkerd/templates/linkerd.yml

from linkerd-examples.

gosharplite avatar gosharplite commented on May 19, 2024

Yes, I'm using CNI. I did add hostNetwork: true in the daemonset config, but I did not set hostNetwork: true on the io.l5d.k8s.daemonset transformer and io.l5d.k8s.localnode transformer in the linkerd configs.

NODE_NAME is also needed in the daemonset config. dstPrefix: / is not needed in the linkerd configs.

After fixing daemonset and linkerd configs, expected results show up.

$ http_proxy=10.128.112.27:31396 curl -s http://hello
Hello (10.2.15.144) world (10.2.15.174)!

All yml files are here FYR.

Thanks for your help :)

from linkerd-examples.

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.