-
Notifications
You must be signed in to change notification settings - Fork 200
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
feat: add VerticalPodAutoscaler to csi controller pod #2536
base: master
Are you sure you want to change the base?
Conversation
Hi @umagnus. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
AKS need to add a label for vpa admission controller webhook to impact csi controller pod in |
Hey, I came here via the reference in the VPA PR. I'm not sure if you tried this for a longer period of time already in some beta env or have long-term experience with other components with many containers in a single pod, but keep in mind that this change will lead to many additional interruptions for the Pod, as VPA will evict it when the recommendation for a container changes by more than 10% (which happens quickly for these small absolute values). This also happens if e.g. your initial requests are too high and the containers will be scaled down step by step. I'm not sure if those disruptions could become an issue – but if resource usage isn't expected to change much, it may just be better to not have VPA enabled for this and have fewer disruptions. |
@voelzmo thanks for the tips. we would like to use VPA mainly for CSI driver controller sidecar containers, the memory usage of those containers would grow dramatically when PV num grows in the cluster, current memory limit 500Mi is far from enough when there are a few thousand PVs in the cluster, in that case, the CSI driver would be OOM, that's the reason we want to use VPA. |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: umagnus The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
deploy/example/vpa/uninstall-vpa.sh
Outdated
repo="https://github.com/kubernetes/autoscaler.git" | ||
echo "Uninstalling VPA ..." | ||
git clone $repo | ||
cd autoscaler/vertical-pod-autoscaler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there an easy way to install upstream autoscaler without cloning the whole repo? and it's better installing a stable version instead of master branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the doc only provides the installation to download the source code of VPA https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/docs/installation.md#install-command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: the script currently reads environment variables: $REGISTRY and $TAG. Make sure you leave them unset unless you want to use a non-default version of VPA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we use 1.3.0 version in yaml file now
containerPolicies: | ||
- containerName: '*' | ||
maxAllowed: | ||
memory: 50Gi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
50G is crazy, 10Gi should be enough now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
deploy/example/vpa/uninstall-vpa.sh
Outdated
@@ -0,0 +1,29 @@ | |||
#!/bin/bash | |||
# Copyright 2020 The Kubernetes Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@umagnus: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
feat: add VerticalPodAutoscaler to csi controller pod
Which issue(s) this PR fixes:
Fixes #
Requirements:
Special notes for your reviewer:
Release note: