Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add container resource policies for HA VPN containers to hvpa resource of kube-apiserver. #9173

Conversation

ScheererJ
Copy link
Contributor

How to categorize this PR?

/area auto-scaling
/area control-plane
/area networking
/area robustness
/kind enhancement

What this PR does / why we need it:

Add container resource policies for HA VPN containers to hvpa resource of kube-apiserver.

In the past, autoscaling of VPN side car containers was disabled in kube-apiserver. With the removal of the old VPN solution this code disappeared. The HA VPN solution did not influence the autoscaling of its containers in kube-apiserver. This can lead to situations where the memory resources are so restricted by VPA that even runc fails to start. Therefore, it is crucial to set minimum allowed values for memory so that the containers can always start.
This change achieves exactly that.

Which issue(s) this PR fixes:

None.

Special notes for your reviewer:

Release note:

The side car container of kube-apiserver for the HA VPN now have minimum memory resources that VPA will respect.

…e of kube-apiserver.

In the past, autoscaling of VPN side car containers was disabled in kube-apiserver. With
the removal of the old VPN solution this code disappeared.
The HA VPN solution did not influence the autoscaling of its containers in kube-apiserver.
This can lead to situations where the memory resources are so restricted by VPA that even
runc fails to start. Therefore, it is crucial to set minimum allowed values for memory so
that the containers can always start.
This change achieves exactly that.
@gardener-prow gardener-prow bot added area/auto-scaling Auto-scaling (CA/HPA/VPA/HVPA, predominantly control plane, but also otherwise) related area/control-plane Control plane related area/networking Networking related area/robustness Robustness, reliability, resilience related kind/enhancement Enhancement, improvement, extension cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. labels Feb 15, 2024
@gardener-prow gardener-prow bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 15, 2024
@ScheererJ
Copy link
Contributor Author

/cc @MartinWeindel @voelzmo

Copy link
Member

@MartinWeindel MartinWeindel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Feb 16, 2024
Copy link
Contributor

gardener-prow bot commented Feb 16, 2024

LGTM label has been added.

Git tree hash: 5dbc0297d3a044e1f4e62132e05c9d051a415e2c

Copy link
Member

@rfranzke rfranzke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@ScheererJ
Copy link
Contributor Author

@voelzmo
Copy link
Member

voelzmo commented Feb 16, 2024

/lgtm

@rfranzke
Copy link
Member

/approve

Copy link
Contributor

gardener-prow bot commented Feb 16, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: MartinWeindel, rfranzke

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 16, 2024
@gardener-prow gardener-prow bot merged commit 00c3e16 into gardener:master Feb 16, 2024
16 checks passed
@gardener-robot
Copy link

@voelzmo, @rfranzke, @ScheererJ, @MartinWeindel This pullrequest was referenced by someone in a duplicate issue. Details redacted in public. Check backend logs.

@gardener-robot
Copy link

@voelzmo, @rfranzke, @ScheererJ, @MartinWeindel This pullrequest was referenced by someone in a duplicate issue. Details redacted in public. Check backend logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/auto-scaling Auto-scaling (CA/HPA/VPA/HVPA, predominantly control plane, but also otherwise) related area/control-plane Control plane related area/networking Networking related area/robustness Robustness, reliability, resilience related cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/enhancement Enhancement, improvement, extension lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants