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
Remove addons/strip-limits.libsonnet addon #1500
Comments
|
@paulfantom I did this for all components in my cluster, however I can't find a way to set the resource requests for kube-rbac-proxy. |
|
Good point @andrein, looking at the code it does seem like kube-rbac-proxy is kinda left out. @paulfantom what do you think about kube-rbac-proxy being embedded into the e.g. node exporter could have something like this: local krp = import './kube-rbac-proxy.libsonnet';
local defaults = {
local defaults = self,
// Convention: Top-level fields related to CRDs are public, other fields are hidden
// If there is no CRD for the component, everything is hidden in defaults.
name:: 'node-exporter',
namespace:: error 'must provide namespace',
version:: error 'must provide version',
image:: error 'must provide version',
resources:: {
requests: { cpu: '102m', memory: '180Mi' },
limits: { cpu: '250m', memory: '180Mi' },
},
.
.
.
.
kubeRbacProxy:: {
name: 'kube-rbac-proxy'
upstream: 'http://127.0.0.1:' + defaults.port + '/',
secureListenAddress: '[$(IP)]:' + defaults.port,
resources: {
requests: { cpu: '100m', memory: '100Mi' },
limits: { cpu: '150m', memory: '100Mi' },
}
.
.
.
}
};
function(params) {
local ne = self,
_config:: defaults + params,
local kubeRbacProxy = krp(ne._config.kubeRbacProxy),
.
.
.
} |
|
I like the idea! On top of that, assuming that all the kube-rbac-proxies have roughly the same resource usage, I would also like to be able to specify those limits globally in main.libsonnet like so: or, maybe as a separate component like so: What do you think? |
|
That would make sense in the past. However, right now I think this would clash with the idea of reusing CRD-defined fields in We could put the kube-rbac-proxy definition into From what I've seen in most cases people want to remove limits from
Long-term solution is being worked in #861. Because of that I think we should discourage usage of |



paulfantom commentedNov 10, 2021
README.md is still pointing to
addons/strip-limits.libsonnetaddon as a way to strip containers from set resource limits. However sincerelease-0.8resource requests are first-level settings and users should use the following form:README section should be removed and a new doc describing how to set resource requests and limits should be created. This also fits nicely with #1005
Anything else we need to know?:
Issue created as a result of #1498
The text was updated successfully, but these errors were encountered: