Octopus
1.x
Docs/Octopus/FARP & discovery
Open

Reading2 min
Updated31 Jul 2026
Sourcev1/configuration/farp.mdx

FARP & discovery

FARP (the Forge API Gateway Registration Protocol) provides service discovery and automatic routing. The farp section is optional and disabled by default. For conceptual depth, see the FARP section.

farp:
  enabled: true
  watch_interval: 5s
  schema_cache_ttl: 5m
  discovery:
    backends:
      - type: kubernetes
        enabled: true
        config:
          namespace: default
          label_selector: "app.kubernetes.io/part-of=myapp"
          watch_interval: 10s

farp01

KeyTypeDefaultDescription
enabledbooleanfalseEnable FARP service discovery and auto-routing.
watch_intervalduration5sInterval for discovering service changes.
schema_cache_ttlduration5mSchema cache time-to-live.
discoveryobjectnoneDiscovery backend configuration. See below.

Discovery02

farp.discovery holds a list of discovery backends.

KeyTypeDefaultDescription
backendsarray[]Discovery backends. Each is tagged by type.

Each backend entry has a type (mdns, dns, consul, or kubernetes), an enabled flag (default true), and a backend-specific config object.

yaml
- type: mdns
  enabled: true
  config:
    service_type: _http._tcp
    domain: local.
    watch_interval: 10s
    query_timeout: 2s
    enable_ipv6: true
Note

The farp.discovery.kubernetes backend is independent of the in-process Gateway API controller configured under kubernetes. See Kubernetes for how the two relate.