some-doctor-15042
10/23/2020, 8:36 PMerror: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: Get "https://********************.<http://sk1.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s|sk1.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s>": getting credentials: exec: exit status 2
This is using typescript and the following guide - https://www.pulumi.com/docs/get-started/kubernetes/review-project/
Can pulumi not authenticate with the existing kubeconfig via an iam role?billowy-army-68599
10/23/2020, 8:39 PMkubectl
currently work?some-doctor-15042
10/23/2020, 8:47 PMbillowy-army-68599
10/23/2020, 8:58 PMsome-doctor-15042
10/23/2020, 9:17 PMapiVersion: v1
clusters:
- cluster:
certificate-authority-data: **********************=
server: https://**************.<http://sk1.us-west-2.eks.amazonaws.com|sk1.us-west-2.eks.amazonaws.com>
name: arn:aws:eks:us-west-2:******:cluster/dev-default-cluster
contexts:
- context:
cluster: arn:aws:eks:us-west-2:******:cluster/dev-default-cluster
user: arn:aws:eks:us-west-2:******:cluster/dev-default-cluster
name: arn:aws:eks:us-west-2:******:cluster/dev-default-cluster
current-context: arn:aws:eks:us-west-2:******:cluster/dev-default-cluster
kind: Config
preferences: {}
users:
- name: arn:aws:eks:us-west-2:******:cluster/dev-default-cluster
user:
exec:
apiVersion: <http://client.authentication.k8s.io/v1alpha1|client.authentication.k8s.io/v1alpha1>
args:
- --region
- us-west-2
- eks
- get-token
- --cluster-name
- dev-default-cluster
command: aws
env:
- name: AWS_PROFILE
value: n-eks
I just ran aws eks update-kubeconfig
to get the configaws eks get-token
rather than aws-iam-authenticator
billowy-army-68599
10/23/2020, 9:51 PM