-
Notifications
You must be signed in to change notification settings - Fork 813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Design][K8S] EBS Tagger Sidecar #351
Comments
/cc @wongma7 |
@leakingtapan thank you for looking into this issue! This tagger sidecar approach unfortunately has a major drawback: There is no enforced tagging right when the volume is created. If you look at my comment regarding best-practices on doing IAM policies #180 (comment) or also #180 (comment) it's a strict requirement to have the volume tagged upon their initial creation and not "dynamically" later. In "my" case I want to restrict / filter the EBS driver to only be able to touch and handle its own volumes - the tag works like a tenant in this case. Having forced thags for EVERY volume the EBS driver creates / handles is just what I would want to configure to isolate EBS volumes in that AWS account that belong to others. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
I just tossed this controller together. It does not work specifically for the csi, but for the built-in kubernetes ebs provider. It fetches the labels from the pv and pvc and applies them to the AWS EBS volume. |
Thx for your input. The major drawback of current CSI spec is that there is no way for the driver to know what are the tag values it's suppose to use during volume creation (except for storageclass parameter, which has other problems on ease of use). So we either stuck on this feature or build a sidecar as post volume creation tag. These are the only two options I can think of now for dynamic tag values. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Is there a way to tag ebs volumes? |
Is your feature request related to a problem? Please describe.
This is Kubernetes specific feature. Following are requirements:
This design provides an alternative solution for #180. And it provides an alternative way to apply static tags.
Describe the solution you'd like in detail
We will create a side car container, ebs-tagger, running along side EBS CSI controller service. It will be a k8s operator that watches for PV creation. When is a new PV is created and iff it is a EBS CSI pv, the operator will:
ebs.csi.aws.com/extra-tags
and apply tagsDescribe alternatives you've considered
Extending storage class as described in #180
Additional context
Related similar sub problem: #333
The text was updated successfully, but these errors were encountered: