When creating an EKS cluster, I specified the stor...
# general
When creating an EKS cluster, I specified the storage class type as
. It seems that both a
AND my
storageClasses get created and they are both marked as
. Is this expected behavior? Is there a specific property I need to set to prevent that from happening?
Copy code
// Create a VPC for our cluster.
const vpc = new awsx.ec2.Vpc("Kafka-VPC", {numberOfAvailabilityZones: 3});

// Create an EKS cluster with the given configuration.
const cluster = new eks.Cluster("kafka-cluster", {
    vpcId: vpc.id,
    subnetIds: vpc.privateSubnetIds,
    instanceType: instanceType,
    desiredCapacity: desiredCapacity,
    minSize: minSize,
    maxSize: maxSize,
    storageClasses: storageClass,
    deployDashboard: deployDashboard,
EKS automatically installs a GP2 storage class now. Is that the one you are seeing? https://docs.aws.amazon.com/eks/latest/userguide/storage-classes.html Until recently, we were also generating another copy of the same storage class (because older clusters needed it), but I believe we removed that in https://github.com/pulumi/pulumi-eks/pull/136 (we may not have yet done a package release after that was merged though).
If you try out
"@pulumi/eks": "dev"
in your package.json, you should be able to see whether that fix will address this for you.
This is what I was seeing:
Copy code
> kubectl get storageclasses
NAME                                   PROVISIONER             AGE
gp2 (default)                          <http://kubernetes.io/aws-ebs|kubernetes.io/aws-ebs>   23m
kafka-cluster-st1-evr2qvmh (default)   <http://kubernetes.io/aws-ebs|kubernetes.io/aws-ebs>   21m
Having the
class is fine, just the fact that both are marked as default can cause issues. I’ll try it out, thanks
@white-balloon-205 One other thing, is there a way to get the storage class name via the pulumi/kubernetes api?
Used the
version of eks and still got both storage classes marked as
Hmm - could you open an issue in pulumi-eks? Will need to have someone look into it deeper. It's quite possible that the default storage class that EKS adds automatically for you on >=1.11 gets auotmatically set as
- which would make it hard to change that default. We'll need to look at what we can do about that (and whether that is what's happening here).
Will do