Is it possible to remove resources limits at all? By default they are set to cpu: 2000m and memory: 1024Mi. I understand that, I can override those values, but my question is: is it possible to completely remove these settings?
There should be a way to delete items with k8s.overlays and in general with settings in overlay files for all paths, but I just verified it doesn’t work.
The rather clunky way of making this work in 1.5 would be to use external charts and edit the default.yaml profile to remove the values there. I’ve created https://github.com/istio/istio/issues/23429 to track it, I think it should make it into 1.6.
Hi Pawel,
That’s correct, there’s no way to do it through the regular overlay, but you can now do it in the output manifest using the components.X.k8s.overlays path. See examples here: https://istio.io/latest/docs/setup/install/istioctl/#patching-the-output-manifest
To make this possible in the rest of the API we’d probably need to recognize a special “null” string. It’s doable but I’m not sure if anyone on the team would have time to prioritize it given the current workload. Feel free to open a feature request in istio/istio and assign to me to triage though.
You can also do it at the general API level by using the external charts i.e. use the charts in the tarball and run istioctl --charts /manifests to point to them. Then you can edit the profiles under manfiests/profiles/default.yaml to remove the settings there.
In 1.7.0 and also in the latest version (which is at the moment 1.7.3), there is a regression. At this moment it’s not possible to remove resource limits. Can you advise how can I do that?
EDIT
I tried to set:
spec.values.global.proxy.limits.cpu: null
spec.values.global.proxy.limits.cpu: ~
When I try to set other values, I can that limits are set correctly. The problem is, that it cannot completely remove CPU limits. However, it’s interesting, because in the IstioOperator CPU limits are not set:
Stumbled upon the same problem after upgrading from 1.6 - not possible to use null to remove resource limits and indeed it works only for iop config, but no effect on the actual injected sidecar.
I am able to get a solution which works for any version above 1.6 at least. Did not check for previous versions though.
Here is the manifest (overlay.yml):
Hello, we currently have the same issue with latest version (1.11.3)… We tried the comments above but none worked. Is there a known solution/workaround to completely remove proxy sidecar resource limits? Thanks!
I am unable to find the fix for this. Is it still an open issue. We are the version 1.11.3 and cannot set the limits to “null” to change the default behavior? Do we have any fix for this?
Hello, I also stumbled on this issue. We would like to remove CPU limits from Istio sidecar containers, just wondering if someone manage to find any alternatives.