Back to Linkerd

Introduction

namerd/docs/config.md

1.7.52.8 KB
Original Source

Introduction

A Namerd config example

yaml
storage:
  kind: io.l5d.inMemory
  namespaces:
    galaxyquest: |
      /host       => /#/io.l5d.fs;
      /svc => /host;
namers:
- kind: io.l5d.fs
  rootDir: examples/disco
interfaces:
- kind: io.l5d.thriftNameInterpreter
  port: 4100
  ip: 0.0.0.0
  retryBaseSecs:  600
  retryJitterSecs: 60
- kind: io.l5d.httpController
  port: 4321

Welcome to the Configuration Reference for Namerd!

Namerd's configuration is controlled via a config file, which must be provided as a command-line argument. It may be a local file path or - to indicate that the configuration should be read from the standard input.

File Format

The configuration may be specified as a JSON or YAML object.

KeyRequiredDescription
adminnoConfigures Namerd's administrative interface. Namerd admin has the same options as Linkerd admin.
interfacesyesConfigures Namerd's published network interfaces.
storageyesConfigures Namerd's storage backend.
namersnoConfigures Namerd's integration with various service discovery backends. Namerd uses the same namers as Linkerd.
telemetrynoConfigures Namerd's metrics instrumentation. Namerd does not support tracing, so tracers provided by telemeters are ignored.

Administrative interface

yaml
admin:
  ip: 127.0.0.1
  port: 9991

Namerd supports an administrative interface. The exposed admin port and IP are configurable via a top-level admin section.

KeyDefault ValueDescription
iploopback addressIP for the admin interface. A value like 0.0.0.0 configures admin to listen on all local IPv4 interfaces.
port9990Port for the admin interface.
socketOptionsnoneSocket options to set for the admin interface. See Socket Options
shutdownGraceMs10000maximum grace period before the Namerd process exits
tlsno tlsThe admin interface will serve over TLS if this parameter is provided. see TLS.
workerThreads2The number of worker threads used to serve the admin interface.

Administrative endpoints

Namerd's admin interface mirrors Linkerd's, with one exception: the /delegator.json endpoint in Linkerd is served as /dtab/delegator.json in Namerd.

To learn about default admin endpoints, have a look at Linkerd's administrative interface.

For metrics information, Namerd also exposes Linkerd's CommonMetrics endpoints by default.