Skip to content

feat(chart): nodeSelector/tolerations/affinity for api-rs, slackbotv2, postgres#2

Open
mo4islona wants to merge 1 commit into
mainfrom
feat/chart-node-scheduling
Open

feat(chart): nodeSelector/tolerations/affinity for api-rs, slackbotv2, postgres#2
mo4islona wants to merge 1 commit into
mainfrom
feat/chart-node-scheduling

Conversation

@mo4islona

Copy link
Copy Markdown

What

Adds standard pod-scheduling knobs — nodeSelector, tolerations, affinity — to the api-rs, slackbotv2 and postgres workloads in the Helm chart, mirroring the support repoCache already has.

Why

Lets operators pin the Centaur control plane to dedicated nodes (e.g. a cost-saving spot node pool) without forking the chart. Previously only repoCache honored these fields, so the rest of the stack could not be confined to a specific pool.

Details

  • templates/apirs.yaml, templates/slackbotv2.yaml, templates/workloads.yaml (postgres StatefulSet): render nodeSelector / affinity / tolerations via {{- with .Values.<component>.* }}, identical to the repoCache pattern.
  • values.yaml: new empty defaults ({} / []) per component — rendered output is unchanged when unset.
  • values.schema.json: typed entries for the three new keys under each component.
  • Chart.yaml: version bump 0.1.79 → 0.1.80.

Note for Postgres: a StatefulSet's PVC binds to a single zone, so pin it to a single-zone pool (or a multi-zone-aware storage class) — documented inline in values.yaml.

Scope / not included

This covers the chart-managed control-plane pods only. The agent sandbox runtime pods are created by api-rs via the agents.x-k8s.io Sandbox CRD and take no scheduling input from the chart today; pinning those would need an api-rs change (separate follow-up).

Validation

  • helm lint passes.
  • helm template with sample overrides confirms nodeSelector/tolerations render on all three workloads; with defaults, output is byte-identical to before.

🤖 Generated with Claude Code

…, postgres

Add standard pod-scheduling knobs to the api-rs, slackbotv2 and postgres
workloads, mirroring the existing repoCache support. Lets operators pin the
control plane to dedicated nodes (e.g. a spot pool) without forking the chart.

Defaults are empty ({} / []) so rendered output is unchanged when unset.
values.schema.json and the chart version are updated to match.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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