'How to add custom tag on EBS volume provisioned dynamically by Kubernetes

I'm trying to add a custom tag in PersistentVolume in EKS managed Kubernetes cluster. A custom tag is needed for my use case to manage AWS resources. I couldn't find a way to add a tag when the volume is created. I'm looking for a method to add tag same as load balancer service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags. Is it possible to add a tag like this and if it is, how it can be achieved?



Solution 1:[1]

https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/e175fe64989019e2d8f77f5a5399bad1dfd64e6b/charts/aws-ebs-csi-driver/values.yaml#L79

looks like it is supported if you use EBS

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Amit