Skip to content

feat: implement HorizontalPodAutoscaler for deployment and workers#8

Closed
FabienPapet wants to merge 3 commits into
mainfrom
feat/hpa-deployment-workers
Closed

feat: implement HorizontalPodAutoscaler for deployment and workers#8
FabienPapet wants to merge 3 commits into
mainfrom
feat/hpa-deployment-workers

Conversation

@FabienPapet
Copy link
Copy Markdown
Owner

Summary

  • Add HPA support for main Deployment (autoscaling.enabled)
  • Add HPA support for worker Deployments (values.consumers[].autoscaling)

Test results

  • make lint: PASS
  • make unit-test: 21 suites, 135 tests — all PASS
  • make validate: all 14 example files valid (kubeconform k8s 1.29)

Notes

Stacked on: feat/security-context-health-probes

🤖 Generated with Claude Code

FabienPapet and others added 2 commits April 3, 2026 23:18
- Add podSecurityContext and containerSecurityContext to values.yaml
  injected into deployment, worker, crons, and jobs templates
- Add configurable livenessProbe and readinessProbe (opt-in, empty by default)
  injected into deployment and worker templates
- Fix TODO in worker.yaml: use command+args instead of shell-wrapped command array
- Update values.schema.json with new field definitions
- Add tests/security_context_test.yaml and tests/probes_test.yaml (86 tests pass)
- Add examples/12-security.yaml demonstrating hardened deployment

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add templates/hpa.yaml for main deployment HPA (autoscaling/v2)
- Add templates/worker-hpa.yaml for per-worker HPA via autoscale flag
- Add autoscaling section to values.yaml (disabled by default)
  supports minReplicas, maxReplicas, targetCPU%, targetMemory%
- Workers support per-consumer autoscale, minReplicas, maxReplicas, targetCPU%/memory%
- Omit replicas from Deployment spec when HPA is enabled
- Update values.schema.json with autoscaling and worker HPA fields
- Add tests/hpa_test.yaml and tests/worker_hpa_test.yaml (96 tests pass)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@FabienPapet FabienPapet changed the base branch from feat/security-context-health-probes to main May 31, 2026 19:30
@FabienPapet FabienPapet deleted the feat/hpa-deployment-workers branch May 31, 2026 19:42
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