You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
shutdown-manager does not have default limit #7550
it been complain by some scaner.
We could add a deployment patch in each EnvoyProxy, but I think it’s also quite reasonable to set a default instead. The shutdown-manager should never consume much memory or CPU. setting a limit of 1 core and 1 GB should be sufficient.
can you please add some way of configuring this? We have some clusters that are running with OPA-enforced policies and we need the possibility to configure it.
At the moment, we have managed to get a cluster to test and evaluate the implementation, and it works nicely when we suspend the policy. We successfully managed to configure all other containers, except the shutdown-manager.
Configuring limits is also necessary if you are interested in having your envoy pods running as Guaranteed class, as that requires all containers to have CPU/memory requests/limits.
We see the same in v1.10.0. The shutdown-manager container is created with DefaultShutdownManagerContainerResourceRequirements() (internal/infrastructure/kubernetes/proxy/resource.go:211), which sets requests only (api/v1alpha1/envoyproxy_helpers.go:176-183). EnvoyGateway.provider.kubernetes.shutdownManager accepts only image (api/v1alpha1/envoygateway_types.go:1180-1183), and the EnvoyProxy container settings apply to the envoy container only.
The effect for operators who run policy checks: the proxy Deployment, and the ReplicaSet template, show a container without CPU or memory limits. Checks such as trivy KSV-0011 and KSV-0018, and admission policies that require limits, fail on every proxy. A namespace LimitRange gives the running Pods limits, but those checks read the template. Patching the Deployment through EnvoyProxy is the only way to set the limits today, and some operators disable patches (runtime flag EnvoyProxyPatch) for security reasons.
A resources field for the shutdown manager would solve it: in EnvoyGateway.provider.kubernetes.shutdownManager (cluster-wide), as #7550 suggests, or in EnvoyProxy, as #7770 suggests. Either works for us. We can test a change on kind.
Activity
[-]shutdown-manager does not have default limit and complain[/-][+]shutdown-manager does not have default limit[/+]woodgear commentedon Nov 18, 2025
@zhaohuabing should treat it as same as envoygateway? but we could not set shutdownmanager limit easyliy
zhaohuabing commentedon Nov 19, 2025
Yeah, I think it makes sense. cc @envoyproxy/gateway-maintainers
arkodg commentedon Nov 19, 2025
A memory limit makes sense, we don't add CPU limits to avoid throttling
tbosnjak commentedon Dec 3, 2025
Hi @arkodg,
can you please add some way of configuring this? We have some clusters that are running with OPA-enforced policies and we need the possibility to configure it.
At the moment, we have managed to get a cluster to test and evaluate the implementation, and it works nicely when we suspend the policy. We successfully managed to configure all other containers, except the shutdown-manager.
jukie commentedon Dec 3, 2025
@tbosnjak You can add cpu limits and adjust container resources with an EnvoyProxy similar to below:
tbosnjak commentedon Dec 3, 2025
@jukie , mate you rock! Thank you very much. I just tested it and it works.
I just added your settings to my existing config.
nemobis commentedon Apr 30, 2026
Configuring limits is also necessary if you are interested in having your envoy pods running as Guaranteed class, as that requires all containers to have CPU/memory requests/limits.
meezaan commentedon Nov 19, 2026
We see the same in v1.10.0. The shutdown-manager container is created with
DefaultShutdownManagerContainerResourceRequirements()(internal/infrastructure/kubernetes/proxy/resource.go:211), which sets requests only (api/v1alpha1/envoyproxy_helpers.go:176-183).EnvoyGateway.provider.kubernetes.shutdownManageraccepts onlyimage(api/v1alpha1/envoygateway_types.go:1180-1183), and the EnvoyProxy container settings apply to the envoy container only.The effect for operators who run policy checks: the proxy Deployment, and the ReplicaSet template, show a container without CPU or memory limits. Checks such as trivy KSV-0011 and KSV-0018, and admission policies that require limits, fail on every proxy. A namespace LimitRange gives the running Pods limits, but those checks read the template. Patching the Deployment through EnvoyProxy is the only way to set the limits today, and some operators disable patches (runtime flag EnvoyProxyPatch) for security reasons.
A resources field for the shutdown manager would solve it: in
EnvoyGateway.provider.kubernetes.shutdownManager(cluster-wide), as #7550 suggests, or in EnvoyProxy, as #7770 suggests. Either works for us. We can test a change on kind.