-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flag to set volume attachment limit for trident csiNodes
This introduces a new flag `-volume_attach_limit`, meaningful when running trident_orchestrator for a node server. Allows to specify a maximum capacity of allocatable volumes per csi node. Default value (0) means that no cap is set. Example output from `kubectl describe csinodes.storage.k8s.io` when running trident daemonset with `-volume_attach_limit=10`: ``` Spec: Drivers: csi.trident.netapp.io: Node ID: worker-0.exp-1.merit.uw.systems Allocatables: Count: 10 Topology Keys: [topology.kubernetes.io/zone] ``` Trying to scale more than 10 volumes (following the above example) in the same node will not be allowed. Pods that will not fit will remain `Pending` and checking events will yield something like: ``` Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning FailedScheduling 32s default-scheduler 0/8 nodes are available: 1 node(s) exceed max volume count, 2 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 5 node(s) didn't match Pod's node affinity/selector. ```
- Loading branch information
1 parent
f5fa317
commit 2d9888f
Showing
3 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters