This message was deleted.
# general
s
This message was deleted.
b
Are you having trouble on how to do it in general with EKS (separate from Pulumi), or how to do it with Pulumi?
l
I already have deployed eks cluster with fargate pods using pulumi
now I want to deploy a couple of managed node groups using spot
b
What’s the issue/confusion?
l
because I used pulumi-kubernetes extension
it won’t accept my cluster , but the type seems the same
it seems to expect a `aws.eks.Cluster`type, but my type is only
Cluster
which is from pulumi-kubernetes
b
what’s the full type of
eksCluster
? How did you create it?
l
Copy code
const eksCluster = new eks.Cluster(`eksCluster${pulumi.getStack()}`, {
  serviceRole: eksMasterRole...
b
That doesn’t seem like the right repo -
pulumi-kubernetes
does not define it. It would be either from
pulumi-eks
or from
pulumi-aws
Given it’s
new eks.Cluster
, seems more likely the former.
https://www.pulumi.com/registry/packages/eks/api-docs/managednodegroup/#inputs note that the
cluster
is of type
CoreDataArgs
,not
eks.Cluster
In your code, instead of doing:
Copy code
cluster: eksCluster
do:
Copy code
cluster: eksCluster.core
l
sweet
that worked
thanks, @bored-table-20691
b
Glad it worked!