Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Kubernetes cluster unreachable: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1" #14

Open
1 task done
oxr463 opened this issue Feb 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@oxr463
Copy link

oxr463 commented Feb 16, 2023

Contact Details (optional)

N/A

Description. What happened?

Attempting to implement this module results in an error when running against EKS v1.24 cluster and kubectl version v1.23

Steps to reproduce

module "efs_csi_driver" {
  source  = "DNXLabs/eks-efs-csi-driver/aws"
  version = "0.1.5"

  cluster_name                     = module.eks.cluster_name
  cluster_identity_oidc_issuer     = module.eks.cluster_oidc_issuer_url
  cluster_identity_oidc_issuer_arn = module.eks.oidc_provider_arn
}

Expected behavior

No response

Actual behavior

Error: Kubernetes cluster unreachable: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"

Occurrence

Frequently

Relevant log output

module.efs_csi_driver.helm_release.kubernetes_efs_csi_driver[0]: Creating...
╷
│ Error: Kubernetes cluster unreachable: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"
│ 
│   with module.efs_csi_driver.helm_release.kubernetes_efs_csi_driver[0],
│   on .terraform/modules/efs_csi_driver/helm.tf line 1, in resource "helm_release" "kubernetes_efs_csi_driver":
│    1: resource "helm_release" "kubernetes_efs_csi_driver" {
│ 
╵
kubectl version
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.16", GitCommit:"60e5135f758b6e43d0523b3277e8d34b4ab3801f", GitTreeState:"clean", BuildDate:"2023-01-18T16:01:10Z", GoVersion:"go1.19.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"24+", GitVersion:"v1.24.8-eks-ffeb93d", GitCommit:"abb98ec0631dfe573ec5eae40dc48fd8f2017424", GitTreeState:"clean", BuildDate:"2022-11-29T18:45:03Z", GoVersion:"go1.18.8", Compiler:"gc", Platform:"linux/amd64"}

Code of Conduct

  • I agree to follow this project's Code of Conduct
@oxr463 oxr463 added the bug Something isn't working label Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant