-
Notifications
You must be signed in to change notification settings - Fork 83
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
Multiple default storageClasses when specifying storageClass in EKS cluster #141
Comments
By default, the To get the desired result, you'll have to either patch the |
Is there a way of querying the storage class names from the pulumi/kubernetes api? That's the only way I know of to get the actual name of the user provided storage class to be able to pass it to the helm charts. |
I know #139 has just been opened but until then, I'm hoping there is a workaround. |
@metral As a follow up to this, I commented out the Is this intended behavior? |
As of now there isn't, but #139 is slated to be worked on in this current milestone (M24). The dupe |
Update: v0.18.6 has been released to get around the dupe storageclass. |
@metral Is this fixed? |
#136 / v0.18.6 addressed the duplicate I'm currently working on a PR downstream for #139 which ultimately should help mediate the original goal here of deploying Helm charts to a known SC - but in the tests of validating the exported SC's by checking the SC names returned during pulumi/pulumi-azure#192 (comment) precisely explains what i'm seeing: during a preview the |
w.r.t this ^ unfortunately you can mark many SC's as
e.g. from an existing cluster w/ many SC's marked default
Hence the recommendation for the chart to specify its storageclass, rather than defer to the default SC set. But to do so, we need to export the SC's names, and that is what i'm working on downstream, what is tracked in #139, and what I refer to in my prev comment above. |
Ah of course. Is there a way through the Pulumi kubernetes api to set/remove those default annotations? Such as through transformations? |
Not sure about transformations - @lblackstone any thoughts on the comment above? I've opened up #172 to track the export of all user created StorageClasses, so that you may pass the desired StorageClass name to the Helm chart for your use case, and get around the issue of multiple |
Being able to have the storage class name should be good enough in 99% of scenarios. Only in the case of using a community helm chart where the storage class name is unable to be specified would you have to rely on the default storage class. But I'm guessing that's a very unlikely scenario. |
Generally in these cases with Helm, your options are 1) either open a PR to the chart upstream to enable the configuration of the storage class, or 2) fork the chart in question, make the storage class edits you need downstream, and maintain it with the updates from upstream / stable - the easiest path being # 1. Transformations may be possible here (@lblackstone?), but specifying the storage class seems like a valid config setting that belongs in the chart. #172 should help you either way you choose. |
@metral What work is being tracked in this issue now? |
When creating an EKS cluster and specifying a custom storage class (e.g.
st1
), the defaultgp2
storageClass is created along side the customst1
storageClass which is also marked as default.Where
storageClass = "st1"
:This results in:
This can cause issues when helm charts rely on one default storage class since the storageClass name cannot be passed directly to the charts.
Expected behavior: One storageClass is marked as default after EKS creation (preferably the user specified class)
Actual behavior: Both the EKS created
gp2
AND the user specifiedst1
storage class are marked as default.Other thoughts:
Ability to add/remove default status to storageClasses
The text was updated successfully, but these errors were encountered: