I’m working with a Nomad open source cluster that has multiple namespaces. I need to restrict certain nodes to specific namespaces. Here’s the scenario:
- Nodes
node1,node2, andnode3should be exclusively assigned to theDevnamespace. - Jobs created in the
Devnamespace should only run onnode1,node2, andnode3. - With ACLs enabled, users with access to the
Devnamespace should only see nodes assigned toDev.
I’ve looked into node pools, which seem to help restrict job allocation. However, operators can still choose to allocate jobs to nodes in the default pool by not specifying the node_pool field in the job spec.
Is there a way to enforce that workloads in a namespace are strictly allocated to their assigned nodes? Any suggestions or best practices would be greatly appreciated.