Host Agents

Nomatron is in early access. Some advanced workflows may not be covered in the public docs.

The Host Agent runs on each eligible Nomad client and carries out Application Networking work on that host: it creates Docker networks, reports inventory, and, in managed mode, runs Cilium. Every Application Networking mode needs Host Agents.

Nomatron deploys Host Agents as a Nomad system job by default. The job targets Nomad’s built-in all node pool, so one allocation runs on every ready, eligible Linux client with a healthy Docker driver. Its image is ghcr.io/nomatronio/nomatron-releases/nomatron-host-agent, tagged with your server’s version (for example v0.1.7).

Before You Deploy

Privileged Host Access

The Host Agent can use the Docker socket, CNI configuration and binaries, bpffs, Cilium runtime state and its own identity directory. Treat access to its job, its Nomad Variable and its host mounts as administrative access to every eligible client. You must acknowledge this access when you deploy.

Nomad Docker Client Settings

Add this to the Nomad client configuration on every eligible client, then restart the Nomad client:

hcl
plugin "docker" {
  config {
    volumes {
      enabled = true
    }

    # Required so Nomad lets the Host Agent see the host's processes
    # (it uses pid_mode = "host"). The Host Agent does not run as a
    # privileged container.
    allow_privileged = true

    allow_caps = [
      "sys_admin",
      "net_admin",
      "net_raw",
      "kill",
      "dac_override",
      "chown",
    ]
  }
}

Automatic deployment is blocked until every eligible client publishes driver.docker.privileged.enabled=true and driver.docker.volumes.enabled=true. host-agent-status and the deploy error name any client that is missing them.

The Agent Listener

Host Agents connect to server.agent_grpc_listen_addr (NOMATRON_AGENT_GRPC_LISTEN_ADDR), which defaults to the HTTP port plus one. Set server.agent_grpc_advertise_addr (NOMATRON_AGENT_GRPC_ADVERTISE_ADDR) to the address clients can reach, for example nomatron.example.com:443 behind a TCP load balancer or an HTTP/2-capable proxy. Do not put an HTTP/1-only proxy in front of it. If you leave it unset, agents dial the API hostname on the API port plus one (for example nomatron.example.com:4650 when the API is on port 4649). If the API address has no port, they use port 443 for https or 4650 for http.

If Nomatron uses a private CA, set server.tls_ca_file (NOMATRON_TLS_CA_FILE); automatic deployment passes that bundle to the agents.

Nomad ACLs

When Nomad ACLs are enabled, Nomatron creates a read-only nomatron-host-agent-bootstrap-reader policy. The preferred way to give it to the Host Agent job is Nomad workload identity. If you cannot use workload identity, attach the policy to existing client tokens from Host Agent ACL onboarding in the cluster’s Networking page in the Nomatron UI. You only ever enter token accessor IDs there, never secret IDs.

Deploy Host Agents

Authenticate the CLI with a token from your secret store (NOMATRON_TOKEN, --api-token-file or --api-token-stdin), then deploy:

bash
export NOMATRON_ADDR="https://nomatron.example.com"
nomatron clusters networking host-agent-deploy \
  --name production \
  --acknowledge-privileged-access
  • --mode is nomad_system_job (default), external_service, or disabled.
  • --agent-version pins a Host Agent version. By default the agent matches the server version.
  • Without --acknowledge-privileged-access, the CLI asks you to type yes in an interactive terminal, and fails in scripts.
  • Add --organization <name> for an organisation-scoped cluster. Without it, the command uses the global cluster.

Use external_service when you want to run the agent yourself (for example under systemd). Nomatron then removes its managed job. Enrollment secrets for external agents come from the cluster’s Networking page in the UI; each is shown once and expires after 15 minutes.

Check Coverage

bash
nomatron clusters networking host-agent-status --name production

The output shows the deployment mode and how many agents are expected, connected, healthy, stale and missing. When automatic deployment is blocked, it also lists the clients that need the Docker plugin settings above.

Setup can continue once one Host Agent is healthy; partial coverage shows as degraded. A job that uses Application Networking is still rejected unless every client eligible for that job has a healthy agent with fresh inventory.

Repair And Upgrade

Nomatron re-registers its managed Host Agent job if the live job drifts from the desired specification. To review drift by hand instead, set networking.repair_managed_host_agent_drift = false in the server configuration.

Upgrading Nomatron does not roll Host Agents automatically. After you upgrade the servers, run a repair on each cluster to roll the agents onto the new image:

bash
nomatron clusters networking host-agent-repair --name production

Revoke An Agent

Revoke a Host Agent’s identity when a node is decommissioned or its identity directory may have been exposed:

bash
nomatron clusters networking host-agent-revoke --name production --agent-id <HOST_AGENT_ID>

Revocation is permanent for that identity. To bring the machine back, re-provision it so it joins Nomad with a new node ID, then let it enrol again.