I am seeing this issue when i updated the kubectl cli from 1.23 to 1.25 and the EKS cluster is in the 1.25 version, the health check is failing with this message. can someone please assist?
.
Creating kubectl context to https://3549866A8516E9C952F3D20B305950BD.gr7.us-east-1.eks.amazonaws.com (namespace default) using EKS cluster name sand-eks-us-east-1
September 6th 2023 15:00:08
Verbose
Invoking target script D:\Octopus\Work\20230906200003-671428-1869\Script.ps1 with parameters
September 6th 2023 15:00:08
Info
kubectl version to test connectivity
September 6th 2023 15:00:08
Error
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
September 6th 2023 15:00:08
Error
error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"
September 6th 2023 15:00:08
Verbose
Process C:\Windows\system32\WindowsPowershell\v1.0\PowerShell.exe in D:\Octopus\Work\20230906200003-671428-1869 exited with code 1
September 6th 2023 15:00:08
Verbose
Exit code: 1
September 6th 2023 15:00:08
Fatal
The remote script failed with exit code 1
Does running the health check in our Workertools execution container allow for it to work? That should have the required version of aws-iam-authenticator, otherwise you could install the version directly on the instance via a command like: choco install -y aws-iam-authenticator --version 0.5.3
Hope that helps but feel free to reach out with any questions at all!
Sadly, you will need to upgrade your Octopus Server version to a later version to get the code updates to support the new endpoints, We added code support for those in 2022.3.10711 and above, as referenced in the above-mentioned GitHub issue.
I hope this helps, and if you have any further issues following the upgrade, please don’t hesitate to let us know.