feat: implement HorizontalPodAutoscaler for deployment and workers#8
Closed
FabienPapet wants to merge 3 commits into
Closed
feat: implement HorizontalPodAutoscaler for deployment and workers#8FabienPapet wants to merge 3 commits into
FabienPapet wants to merge 3 commits into
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
autoscaling.enabled)values.consumers[].autoscaling)Test results
make lint: PASSmake unit-test: 21 suites, 135 tests — all PASSmake validate: all 14 example files valid (kubeconform k8s 1.29)Notes
Stacked on:
feat/security-context-health-probes🤖 Generated with Claude Code