Hi everyone. I am still getting this error. Can so...
# aws
v
Hi everyone. I am still getting this error. Can someone help me? I asked same question 3 days ago. previous message
s
I believe this is related to the version of
kubectl
you’re using. Are you using v1.24? I haven’t had time for in-depth testing/confirmation, but I think this may be resolved if you roll back to an earlier
kubectl
version (assuming you are able to do so).
v
it is pulumi console. How can I update kubectl in pulumi?
s
Ah, my mistake. I was not aware this was in the Pulumi console. (I guess I should have read the original thread!)
w
@victorious-engine-64347 even though the error is displayed in the console, it is occurring where ever
pulumi up
is being executed. So, I suggest looking at that execution environment and make sure versions are up to date.
v
@witty-candle-66007 I am using pulumi/action for
up
command.
w
Running on
ubuntu-latest
?
v
yes
w
Regardless, maybe add this to your github actions workflow to make sure the latest kubectl is installed:
Copy code
- name: Install Kubectl
        run: |
          curl -LO <https://storage.googleapis.com/kubernetes-release/release/$(curl> -s <https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl>
          chmod +x ./kubectl
          sudo mv kubectl /usr/local/bin
Also does it run OK from your workstation - i.e.
pulumi up
from your machine as opposed to from the github actions?
v