https://pulumi.com logo
#general
Title
# general
c

chilly-photographer-60932

09/11/2019, 7:15 PM
We are trying to upgrade our EKS nodes. https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/eks/#ClusterNodeGroupOptions In
ClusterNodeGroupOptions
when we specify
version: '1.13.10',
from
1.13
the
preview
does not recognize it as a change. What could I be missing? Thanks
w

worried-city-86458

09/11/2019, 7:18 PM
Copy code
const cluster = new eks.Cluster("my-cluster", {
    version: "1.14",
});
Worked for me
c

chilly-photographer-60932

09/11/2019, 7:19 PM
This is an existing node group which was already spun up with
1.13
and now trying to upgrade to
1.13.10
w

worried-city-86458

09/11/2019, 7:20 PM
Yeah I upgraded from 1.13 to 1.14
All I changed was that version in
ClusterOptions
IIRC
Looks like either version should work
Have you tried to find the ami in the aws console?
You probably want
amazon-eks-node-1.13-v20190906
i.e. there is no ami with
1.13.10
in the name
Never mind, it filters on the description, which does have the k8s version.
c

chilly-photographer-60932

09/11/2019, 7:42 PM
Looks like https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html I would have to use
amiid
from this.
Going to try that. Thank you.
w

worried-city-86458

09/11/2019, 7:47 PM
Well, the code should find the ami id if you just specify the version. Not sure why it's not working for you.
According to the code, I'd expect you to just be able to specify version
1.13
and it would find the latest patch and apply it when you next update your stack; unless I'm missing something.
c

chilly-photographer-60932

09/11/2019, 7:52 PM
yes, that’s what I was hoping for.
w

worried-city-86458

09/11/2019, 7:53 PM
When we automatically pick an image to use, we want to ignore any changes to this later by default.
There's no way to opt in to upgrading discovered images, you have to specify the ami id at that point, which is unfortunate.
Another reason to prefer finding the ami by version is that it could / should find the ami in the same region as the stack