Connecting A Cluster
Nomatron is in early access. Some advanced workflows may not be covered in the public docs.
This page covers enabling Application Networking on a connected Nomad cluster. You can do every step in the cluster’s Networking page in the Nomatron UI. The CLI commands are shown below. See Cluster Networking for every flag.
Changes to cluster networking need the Application Networking entitlement, which early-access licences include. Status, history and other read-only views do not.
1. Deploy Host Agents
Every mode needs healthy Host Agents first. See Host Agents
. Connecting before Host Agent deployment has been configured and acknowledged fails with configure and acknowledge Host Agent installation before enabling Application Networking.
2. Configure The Datastore (Cilium Modes Only)
Both Cilium modes need an etcd datastore configuration before you connect. Docker-only mode does not.
- Nomatron-managed Cilium: choose the managed datastore in the UI. Nomatron runs three etcd members on three eligible clients, using Nomad dynamic host volumes (Nomad 1.10 or newer) or three CSI volumes named
nomatron-networking-etcd[0],[1]and[2]. With dynamic host volumes, you can restrict placement to a node pool or spread members across a topology attribute such asdatacenter. To change placement later, disconnect first. - Bring your own Cilium: point Nomatron at your etcd cluster. Run your Cilium in kvstore mode against the same etcd cluster.
There is no CLI command for the datastore. Use the UI, or the API with the request in a file so private keys never appear on the command line:
# datastore.json, created from your secret store and readable only by you:
# {"mode":"customer","endpoints":["https://etcd-1.example.com:2379"],
# "ca_pem":"<CA_PEM>","client_cert_pem":"<CLIENT_CERT_PEM>","client_key_pem":"<CLIENT_KEY_PEM>"}
curl --fail -X PUT "$NOMATRON_ADDR/api/v1/clusters/production/networking/datastore" \
-H "Authorization: Bearer $NOMATRON_TOKEN" \
-H "Content-Type: application/json" \
--data @datastore.json
rm -f datastore.jsonEndpoints must be absolute https:// URLs. ca_pem is optional if the endpoint uses a public CA. Supply client_cert_pem and client_key_pem together when etcd needs mutual TLS. Nomatron encrypts these values at rest.
For managed etcd, allow inbound TCP 2380 only between the three etcd clients, and TCP 2379 on those clients only from the networking controller and Cilium agents.
3. Connect
nomatron clusters networking connect --name production --method docker--method is docker, byo (the default) or managed. --cni-name defaults to cilium. Add --organization <name> for an organisation-scoped cluster.
- Managed install is blocked while a client already has Cilium, from Host Agent inventory or Nomad’s CNI fingerprint. Remove it, or use
byo. - Switching straight from one connected mode to another is refused. Disconnect first.
- The Host Agent and networking controller images come from
ghcr.io/nomatronio/nomatron-releases(nomatron-host-agent,nomatron-networking-controller), tagged with your server’s version. See theagent_imagesblock in Configuration File to override the registry.
Check progress:
nomatron clusters networking status --name productionThe output shows the mode, the status (installing, connecting, healthy, degraded, unavailable or error), the datastore mode, and ready versus eligible nodes.
4. Choose Networking For Each Job
- In Cilium modes, set an app job’s Networking Mode to Managed Overlay in the job’s settings in the UI. Nomatron then adds
network.mode = "cni/cilium"to the job, and the change shows in the plan. Jobs left on the default, Job Spec, are run as written. - In any mode, bind jobs to app networks to give them app-scoped Docker networks. A job cannot use an app network and managed overlay at the same time.
Cilium Network Policies
In Cilium modes you can push Cilium policies to the cluster. Supported documents are CiliumNetworkPolicy and CiliumClusterwideNetworkPolicy with apiVersion cilium.io/v2 or cilium.io/v2alpha1.
Validate and push an inline policy file:
nomatron clusters networking policy validate --name production --body "$(cat policies/allow-web.yaml)"
nomatron clusters networking policy push --name production --body "$(cat policies/allow-web.yaml)"Or keep policies in GitHub, read through a GitHub App integration:
nomatron clusters networking policy integrations --name production
nomatron clusters networking policy source --name production \
--connection-id <CONNECTION_ID> --repo acme/network-policies --ref main --path cilium/
nomatron clusters networking policy push --name production --source-mode git \
--connection-id <CONNECTION_ID> --repo acme/network-policies --ref main --path cilium/Git sync is manual: Nomatron reads the repository when you validate or push. List earlier pushes with policy history. Roll back to an earlier snapshot from the UI.
Disconnect
nomatron clusters networking disconnect --name productionDisconnecting removes only Nomatron-owned infrastructure: the networking controller, managed etcd and managed Cilium. Host Agents stay deployed and registered, so app networks keep working. Your own Cilium and etcd are not touched.
In managed mode, cleanup finishes only when Nomad stops advertising plugins.cni.version.cilium-cni on the clients. If cleanup stops before that, run:
nomatron clusters networking retry-cleanup --name productionThe command exits with an error and prints the reason while cleanup is still incomplete.
To remove Host Agents as well, or to abandon a setup that never completed, use Undo setup on the cluster’s Networking page, or call POST /clusters/{clusterName}/networking/undo-setup. Undo setup removes the Host Agent job and revokes agent credentials once any Cilium cleanup is complete. There is no CLI command for it in v0.1.7.