Skip to content

feat(workers): per-pool scheduling and DNS passthroughs; release 2.1.19 - #54

Open
peshence wants to merge 3 commits into
mainfrom
feat/alpsb-worker-pool-scheduling
Open

peshence wants to merge 3 commits into
mainfrom
feat/alpsb-worker-pool-scheduling

Conversation

@peshence

Copy link
Copy Markdown
Collaborator

Worker pools currently have no way to control where their pods land or how they resolve host names. On clusters that mix small general-purpose nodes with large dedicated (tainted) nodes, that means workers can't be placed on the dedicated nodes, replicas of a pool can pile up on a single node, and a memory spike in a worker competes on equal terms with infrastructure pods (NATS, the frontend) on the same node. Some sites also advertise data servers by short host name, which only resolves with an extra DNS search domain.

This adds optional per-pool fields, each passed through verbatim to the worker pod spec:

  • nodeSelector, tolerations, affinity — place a pool on (or prefer) specific nodes, including tainted ones
  • topologySpreadConstraints — spread a pool's replicas, e.g. across hostnames
  • priorityClassName — give workers a priority relative to other pods
  • dnsConfig — e.g. extra searches domains for site-local short host names

All fields are optional and default to unset. Pools that don't set them render exactly as before (the only rendered diff for existing values is the helm.sh/chart label and the resulting config checksum from the version bump).

Changes:

  • templates/worker-pool.yaml: render the fields above when set
  • values.yaml: document them in the workerPools example
  • tests/: fixture pool using all fields; assertions for each, plus a check that pools without them render none of these fields
  • Chart version 2.1.18 → 2.1.19, CHANGELOG entry

Validation: tests/run.sh passes; helm lint passes (default values and the runtime fixture); rendered runtime fixture validates with kubeconform -strict.

…ssthrough; release 2.1.19

Worker pools can now set `topologySpreadConstraints` (e.g. spread replicas
across hostnames) and `priorityClassName` (e.g. let infrastructure pods
outrank workers under resource pressure). Both are optional and passed
through verbatim to the pod spec; pools that do not set them render
unchanged.

Tests cover the new fields, the previously untested `affinity`, and that
pools without any scheduling/DNS settings render none of these fields.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant