Skip to content

[production] Pin snack / snackager / snackpub to the prod node pool#694

Merged
hungtuanz merged 1 commit into
mainfrom
snack-prod-pool
Jul 6, 2026
Merged

[production] Pin snack / snackager / snackpub to the prod node pool#694
hungtuanz merged 1 commit into
mainfrom
snack-prod-pool

Conversation

@hungtuanz

Copy link
Copy Markdown
Contributor

What

Move the production snack, snackager, snackpub production workload(s) off the shared NAP pools onto the dedicated prod GKE node pool (general-central): nodeSelector: pool=prod + toleration dedicated=prod:NoSchedule.

Why

Node-pool consolidation — production workloads belong on the prod pool, off NAP.

Compatibility (verified against the live cluster)

  • Stateless — no PVCs, so no pd-balanced/Hyperdisk attach issue on the c4d-standard-8 prod nodes.
  • prod pool taint = dedicated=prod:NoSchedule → the added toleration is sufficient.
  • Additive patch (base has no nodeSelector) → pool-only selector, no machine-family/iam pins. Production overlay render validated; staging overlays unchanged.

🤖 Generated with Claude Code

Move the snack (website), snackager, and snackpub PRODUCTION
deployments off Node Auto-Provisioning and onto the dedicated GKE
prod node pool.

The prod pool carries the label pool=prod and the taint
dedicated=prod:NoSchedule. Each production overlay now applies a
deployment-prod-pool.yaml strategic-merge patch that sets:

  nodeSelector: { pool: prod }
  tolerations: [{ key: dedicated, value: prod, effect: NoSchedule }]

This mirrors the mechanism used for the staging overlays and keeps
the pinning as Infrastructure-as-Code. All three workloads are
stateless (no PVCs), so scheduling them onto the c4d-backed prod
pool is safe. The base deployments carry no nodeSelector, so the
patches are purely additive and no $patch: replace is needed.
Staging and other environments are untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@hungtuanz
hungtuanz requested a review from byCedric as a code owner July 2, 2026 07:29
@hungtuanz

Copy link
Copy Markdown
Contributor Author

@byCedric could I get a review please?

@hungtuanz
hungtuanz merged commit 942d5da into main Jul 6, 2026
18 checks passed
@hungtuanz
hungtuanz deleted the snack-prod-pool branch July 6, 2026 08:07
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