Coder Social home page Coder Social logo

Error running namerd about linkerd-examples HOT 2 CLOSED

linkerd avatar linkerd commented on May 22, 2024
Error running namerd

from linkerd-examples.

Comments (2)

klingerf avatar klingerf commented on May 22, 2024

Hey @gianrubio -- really sorry for the delay in responding.

I'm not positive, but based on the stacktrace, it looks like your Kubernetes cluster might not have ThirdPartyResources enabled. The namerd k8s config in this repo uses the ThirdPartyResources API to store dtabs, using namerd's io.l5d.k8s storage, described here:

https://linkerd.io/config/0.8.3/namerd/index.html#kubernetes

Can you try turning on ThirdPartyResources in your cluster to see if that fixes it? If that's not possible, then you could switch the namerd k8s config to use a different type of storage. If this is just for the purpose of testing, you could use io.l5d.inMemory instead, which doesn't require a persistent backend. If you want to go that route, then you could apply the following change:

diff --git a/k8s-daemonset/k8s/namerd.yml b/k8s-daemonset/k8s/namerd.yml
index 36c5ea2..f66ac73 100644
--- a/k8s-daemonset/k8s/namerd.yml
+++ b/k8s-daemonset/k8s/namerd.yml
@@ -15,11 +15,18 @@ data:
       port: 8001
 
     storage:
-      kind: io.l5d.k8s
-      experimental: true
-      host: localhost
-      port: 8001
-      namespace: default
+      kind: io.l5d.inMemory
+      namespaces:
+        external: |
+          /host       => /#/io.l5d.k8s/default/http/hello;
+          /http/*/*/* => /host;
+        incoming: ""
+        outgoing: |
+          /srv        => /#/io.l5d.k8s/default/http;
+          /host       => /srv;
+          /tmp        => /srv;
+          /http/*/*   => /host;
+          /host/world => /srv/world-v1;
 
     interfaces:
     - kind: io.l5d.thriftNameInterpreter

And you wouldn't need to separately run the namerctl command to populate the dtab namespaces, since they're already supplied with the config. Let us know if either of these solutions work for you. Thanks!

from linkerd-examples.

klingerf avatar klingerf commented on May 22, 2024

@gianrubio We finally found the underlying cause of this issue, and have fixed it in the linkerd-examples master branch. Better late than never. 😉 Thanks for reporting, and feel free to give it a try again, using the instructions here:

https://github.com/BuoyantIO/linkerd-examples/tree/master/k8s-daemonset#daemonsets--namerd--edge-routing

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.