Open bothra90 opened 4 months ago
@bothra90 v2.3.0 of the provider was just released. Could you check and see if this resolves this issue? Thanks!
Still seeing the same issue on 2.3.0:
❯ npm ls | grep eks
├── @aws-sdk/client-eks@3.525.0
├── @pulumi/eks@v2.3.0
Output from the daemon set:
❯ k get ds aws-node -o yaml | grep image:
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni:v1.11.0
image: 602401143452.dkr.ecr.us-east-1.amazonaws.com/amazon/aws-network-policy-agent:v1.0.4-eksbuild.1
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni-init:v1.11.0
@bradyburke Thanks for the update. I'm not able to reproduce this on my side unfortunately. If you could try a few things, that might be helpful for me to further debug.
pulumi up
, do you notice any changes to the configmap and VpcCni resources?pulumi up
with v2.3.0 of the provider, and where v1.11.0 of the CNI is installed?Thanks
@rquitales I tested on a fresh cluster and it seems to install the correct versioning. Previously, I had been testing an in place update - I will test again and provide details
Since I spent the last 3 days debugging a similar issue, I'm just going to leave my findings here, maybe it'll help somebody else.
So, in my case, it was installing v1.11.0
no matter what - I tried clearing node_modules
, /tmp
, upgrading all providers, etc. By setting process.exit()
in random places of my eks
provider I figured out it does use things like the Cluster
resource from my node_modules
, but eks:index:VpcCni
gets loaded from somewhere else.
That "somewhere else" turned out to be ~/.pulumi/plugins
- for some reason it kept an old version of the eks
plugin there and was using it when referencing the eks:index:VpcCni
. Dropping that folder and re-installing all plugins helped.
Hi, @bothra90
@bsod90 Thanks for the detailed investigations on this! This might be somewhat related to versioning issues reported in #1125. We'll need to dive deeper into how node-based providers handle version upgrades as well.
What happened?
This is related to https://github.com/pulumi/pulumi-eks/issues/1057. When creating a new EKS cluster using
@pulumi/eks: "^2.2.1"
, we still notice that the version of the CNI installed is stillv1.11
, which causes the aws-node pods to go into a crash loop.Example
We create the cluster using the following snippet:
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).