Clusters

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

This file covers the clusters command family.

Commands

  • nomatron clusters list
  • nomatron clusters create
  • nomatron clusters read
  • nomatron clusters update
  • nomatron clusters delete
  • nomatron clusters poll

When To Use Them

  • Use these commands to manage cluster registration and inspect cluster configuration.
  • Use poll when you need the control plane to refresh cluster state.

How To Use Them

List clusters:

bash
nomatron clusters list

Read a cluster:

bash
nomatron clusters read --name prod-eu

Examples

Create a global cluster:

bash
nomatron clusters create \
  --name prod-eu \
  --address https://nomad.example.com:4646 \
  --token-file /run/secrets/nomad_acl_token

Create an org-scoped cluster:

bash
nomatron clusters create \
  --organization-name acme \
  --name sandbox \
  --address https://nomad.sandbox.example.com:4646 \
  --token-file /run/secrets/nomad_acl_token

Omit --organization-name to create the cluster in the global scope. Supply the Nomad ACL token with --token-file, --token-stdin, or $NOMATRON_NOMAD_ACL_TOKEN, never as a plain flag value. Use --no-acl only for clusters that do not use Nomad ACLs.

Poll a cluster after connectivity changes:

bash
nomatron clusters poll --name prod-eu