When I try to create new EKS 1.22 cluster, I'm get...
# aws
r
When I try to create new EKS 1.22 cluster, I'm getting. Did an update for all my dependencies and also aws-cli. There is an issue https://github.com/pulumi/pulumi-eks/pull/701/files but it's merged, and I don't know how to check if this was released.
Copy code
Diagnostics:
  eks:index:VpcCni (test-swa-vpc-cni):
    error: Command failed: kubectl apply -f /tmp/tmp-4006Qk4Ya2zxgl1O.tmp
    Kubeconfig user entry is using deprecated API version <http://client.authentication.k8s.io/v1alpha1|client.authentication.k8s.io/v1alpha1>. Run 'aws eks update-kubeconfig' to update.
    Warning: spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].key: <http://beta.kubernetes.io/os|beta.kubernetes.io/os> is deprecated since v1.14; use "<http://kubernetes.io/os|kubernetes.io/os>" instead
    Warning: spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[1].key: <http://beta.kubernetes.io/arch|beta.kubernetes.io/arch> is deprecated since v1.14; use "<http://kubernetes.io/arch|kubernetes.io/arch>" instead
    error: unable to recognize "/tmp/tmp-4006Qk4Ya2zxgl1O.tmp": no matches for kind "CustomResourceDefinition" in version "<http://apiextensions.k8s.io/v1beta1|apiextensions.k8s.io/v1beta1>"
I have upgraded
@pulumi/awxs=0.40.0
and
@pulumi/eks=0.40.0
and now I'm getting
Copy code
error: Command failed: kubectl apply -f /tmp/tmp-11814Wfls0h46jDSP.tmp
    Warning: spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].key: <http://beta.kubernetes.io/os|beta.kubernetes.io/os> is deprecated since v1.14; use "<http://kubernetes.io/os|kubernetes.io/os>" instead
    Warning: spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[1].key: <http://beta.kubernetes.io/arch|beta.kubernetes.io/arch> is deprecated since v1.14; use "<http://kubernetes.io/arch|kubernetes.io/arch>" instead
    error: unable to recognize "/tmp/tmp-11814Wfls0h46jDSP.tmp": no matches for kind "CustomResourceDefinition" in version "<http://apiextensions.k8s.io/v1beta1|apiextensions.k8s.io/v1beta1>"
I'm not sure if my local kubectl is an issue or not
Copy code
> kubectl version --short
Client Version: v1.22.8
Solved: it was pulumi plugin that was cached 🤦‍♂️
a
Hello, I am experiencing what I think is the same issue, How did you fix the plugin caching issue?
r
Removed plugin from this directory
~/.pulumi/plugins
👀 1
a
The EKS plugin? Or all of the AWS related ones
r
yes, EKS plugin has template yaml file for CNI
You can also try AWS ones, I did all of them later since I wanted to test how this works
a
Great I will try that! Thank you
👍 1
Success! Wow thank you I have been trying this for a long time
🙌 1
v
I removed my resources and trying to setup them again but I am getting
no matches for kind "CustomResourceDefinition" in version "<http://apiextensions.k8s.io/v1beta1|apiextensions.k8s.io/v1beta1>"
issue. I am using github action. I removed yarn lock and installed all packages again but still same.
b
@victorious-engine-64347 this appears to be a different error related to the CNI. can you run
pulumi about
v
I removed resource informations
Copy code
CLI          
Version      3.34.1
Go Version   go1.18.3
Go Compiler  gc

Plugins
NAME        VERSION
aws         5.8.0
docker      3.2.0
eks         0.40.0
kubernetes  3.19.3
nodejs      unknown
random      4.8.0
tls         4.6.0

Host     
OS       darwin
Version  12.3.1
Arch     arm64

This project is written in nodejs: executable='/Users/yasintz/.nvm/versions/node/v12.22.0/bin/node' version='v12.22.0'

Current Stack: staging

TYPE                                                        URN
pulumi:pulumi:Stack                                         stack


Found no pending operations associated with staging

Backend        
Name           <http://pulumi.com|pulumi.com>
URL            <https://app.pulumi.com/yasinntza>
User           yasinntza
Organizations  yasinntza

Dependencies:
NAME                VERSION
@pulumi/aws         5.8.0
@pulumi/awsx        0.40.0
@pulumi/docker      3.2.0
@pulumi/eks         0.40.0
@pulumi/kubernetes  3.19.3
@pulumi/pulumi      3.34.1
@pulumi/random      4.8.0
@pulumi/tls         4.6.0
@types/node         17.0.42
typescript          3.9.10

Pulumi locates its logs in /var/folders/yl/n1dpjgm50csfyc_p79q_jz040000gn/T/ by default
b
could you file an issue with that information and a repro
v
@billowy-army-68599 it is private repo. 😢
@billowy-army-68599 I need help
b
I cannot help without the code I'm afraid. We need to be able to reproduce this to fix it
v