Kubernetes version: v1.22
Cloud being used: aws
Kubectl Version: v1.20
Helm Version: v3.6.2
AWS Cli Version: v1.29.57
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: ...
name: arn:aws:eks:ap-east-1:cluster_name
contexts:
- context:
cluster: arn:aws:eks:ap-east-1:cluster_name
namespace: application-3
user: arn:aws:eks:ap-east-1:cluster_name
name: arn:aws:eks:ap-east-1:cluster_name
current-context: arn:aws:eks:ap-east-1:cluster_name
kind: Config
preferences: {}
users:
- name: arn:aws:eks:ap-east-1:cluster_name
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- --region
- ap-east-1
- eks
- get-token
- --cluster-name
- cluster_name
- --output
- json
command: aws
env:
- name: AWS_PROFILE
value: test
provideClusterInfo: false
Able to connect to aws eks update-kubeconfig and set-context. But while trying to get pods or helm list im facing the below error
Error: Kubernetes cluster unreachable: Get "https:/xxxxx.sk1.ap-east-1.eks.amazonaws.com/version?timeout=32s": getting credentials: exec plugin is configured to use API version client.authentication.k8s.io/v1beta1, plugin returned version client.authentication.k8s.io/v1alpha1