Skip to content

feat(chart): optional HorizontalPodAutoscaler and PodDisruptionBudget#37

Open
rcarvalhoxavier wants to merge 1 commit intoStirling-Tools:mainfrom
rcarvalhoxavier:feat/helm-optional-hpa-pdb
Open

feat(chart): optional HorizontalPodAutoscaler and PodDisruptionBudget#37
rcarvalhoxavier wants to merge 1 commit intoStirling-Tools:mainfrom
rcarvalhoxavier:feat/helm-optional-hpa-pdb

Conversation

@rcarvalhoxavier
Copy link
Copy Markdown

Summary

  • Add optional HorizontalPodAutoscaler (autoscaling/v2) targeting the main Deployment, driven by values.autoscaling (disabled by default).
  • Add optional PodDisruptionBudget (policy/v1) with the same selector labels as the Deployment, driven by values.podDisruptionBudget (disabled by default).
  • Document new keys in values.yaml.

Motivation

Downstream deployments often need HPA and PDB next to the chart. Shipping them as opt-in templates avoids maintaining parallel manifests and keeps labels/selectors consistent with stirlingpdf.selectorLabels.

Notes

  • HPA uses CPU utilization by default; memory is added only when targetMemoryUtilizationPercentage is set to a value > 0.
  • PDB: set maxUnavailable or rely on minAvailable (default 1 when maxUnavailable is unset).
  • Tested locally with: helm template test . --set autoscaling.enabled=true --set podDisruptionBudget.enabled=true.

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