We recently upgraded our EKS environment to v1.12.7. After the upgrade we noticed that there is now an "allocatable" resource called attachable-volumes-aws-ebs
and in our environment we have many EBS volumes attached to each node (they were all generated dynamically via PVCs).
Yet on every node in the "allocated resources" section, it shows 0 volumes attached:
Allocatable:
attachable-volumes-aws-ebs: 25
cpu: 16
ephemeral-storage: 96625420948
hugepages-1Gi: 0
hugepages-2Mi: 0
memory: 64358968Ki
pods: 234
...
Allocated resources:
(Total limits may be over 100 percent, i.e., overcommitted.)
Resource Requests Limits
-------- -------- ------
cpu 5430m (33%) 5200m (32%)
memory 19208241152 (29%) 21358Mi (33%)
attachable-volumes-aws-ebs 0 0
Because of this, the scheduler is continuing to try and attach new volumes to nodes that already have 25 volumes attached.
How do we get kubernetes to recognize the volumes that are attached so that the scheduler can act accordingly?