Skip to content

How to configure trident resource limits #1126

@kdx99

Description

@kdx99

Describe the bug
We want to set resource limits (cpu, memory) to the trident deployment and daemonset (requests seem already be set by default in the operator). But the limits we configure in the trident orchestrator are not passed to the deployments and pods. It lloks as if they are ignored.

Environment
Provide accurate information about the environment to help us reproduce the issue.

  • Trident version: 26.2.0
  • Trident installation flags used:
  • Container runtime: OpenShift/cri-o
  • Kubernetes version: v1.32.10
  • Kubernetes orchestrator: OpenShift 4.19.21
  • Kubernetes enabled feature gates:
  • OS: Red Hat Enterprise Linux CoreOS 9.6.20251203-0
  • NetApp backend types: Ontap 9.16.1P11
  • Other:

To Reproduce
Steps to reproduce the behavior:
oc get tridentorchestrators.trident.netapp.io trident -o jsonpath='{.resources}'
-> limits are seen
oc get deployment trident-controller -n trident -o jsonpath='{.spec.template.spec.containers[].resources}'
-> only requests are seen
oc edit deployment trident-controller -n trident
oc edit daemonset trident-node-linux -n trident
-> setting limits there
-> limits disappear again

Expected behavior
when we define resource limits in the tridentorchestrator definition we expect also limits in the resulting pods in the trident namespace (and if not so at least a documentation how we can get limits in there)
Additional context
Add any other context about the problem here.
oc get tridentorchestrators.trident.netapp.io trident -o jsonpath='{.status.currentInstallationParams.resources}'
{"controller":{"csi-attacher":{"requests":{"cpu":"2m","memory":"20Mi"}},"csi-provisioner":{"requests":{"cpu":"2m","memory":"20Mi"}},"csi-resizer":{"requests":{"cpu":"3m","memory":"20Mi"}},"csi-snapshotter":{"requests":{"cpu":"2m","memory":"20Mi"}},"trident-autosupport":{"requests":{"cpu":"1m","memory":"30Mi"}},"trident-main":{"requests":{"cpu":"10m","memory":"80Mi"}}},"node":{"linux":{"node-driver-registrar":{"requests":{"cpu":"1m","memory":"10Mi"}},"trident-main":{"requests":{"cpu":"10m","memory":"60Mi"}}},"windows":{"liveness-probe":{"requests":{"cpu":"2m","memory":"40Mi"}},"node-driver-registrar":{"requests":{"cpu":"6m","memory":"40Mi"}},"trident-main":{"requests":{"cpu":"10m","memory":"60Mi"}}}}}
-> no limits there although configured

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions