chart: add api-server rollout restart cronjob#61636
chart: add api-server rollout restart cronjob#61636henry3260 wants to merge 1 commit intoapache:mainfrom
Conversation
Add an optional CronJob that runs for the API server deployment, with configurable schedule, target name, and RBAC.
|
Mhm, I am not so for this. Can you give a reason why a periodic restart is needed? Is there a memory leak in the software? Then we should rather fix the root cause and not compensate with a preriodic restart feature. |
Thanks for your feedback!! This isn’t meant to mask a known memory leak. |
Mhm, still not fully convincing. This adds really a lot of complexity for a operational shortcoming that in my view should be fixed in other places. We are planning to carve-out complexity of the chart and this here adds a whole lot of additional complexity. Maybe this is one of the first candidates where we offer a structure to add custom stuff on top via Kustomize? |
Makes sense to me. @jason810496 WDYT? |
|
Thanks Jens for the review!
Do we need to raise discussion in Dev mailing list or Slack channel?
Or if introducing Kustomize had already been decided, then yes, I think it makes sense to me. |
Thanks Jason! |
Maybe we could start a discussion in |
Why
The new gunicorn server type provides rolling worker restarts, but for users who continue to use the default uvicorn mode on Kubernetes, it’s useful to have a first‑class mechanism in the Helm chart to periodically restart the API server pods.
What
Add an optional CronJob (
runs kubectl rollout restart deployment/airflow-api-server)that runs for the API server deployment, with configurable schedule, target name, and RBAC.closes: #61432
Was generative AI tooling used to co-author this PR?
Copilot
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.