brash-book-79719
03/24/2023, 5:43 PM@pulumi/eks
and I consistently get these errors when it’s trying to install the nodeAccess config map and vpc-cni plugin:
kubernetes:core/v1:ConfigMap (supaglue-production-nodeAccess):
error: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: Get "<https://31D666DA6474E04F6D9BF247B0C4A017.gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s>": getting credentials: decoding stdout: couldn't get version/kind; json parse error: json: cannot unmarshal array into Go value of type struct { APIVersion string "json:\"apiVersion,omitempty\""; Kind string "json:\"kind,omitempty\"" }
eks:index:VpcCni (supaglue-production-vpc-cni):
error: Command failed: kubectl apply -f /var/folders/5p/wkr3ydl163jg9b0t7vf_7h080000gn/T/tmp-31472OyZMmul3goiI.tmp
Unable to connect to the server: getting credentials: decoding stdout: couldn't get version/kind; json parse error: json: cannot unmarshal array into Go value of type struct { APIVersion string "json:\"apiVersion,omitempty\""; Kind string "json:\"kind,omitempty\"" }
Is the kubeconfig that is generated incorrect? It seems like it may be? Has anyone seen this before?const cluster = new eks.Cluster(clusterName, {
name: clusterName,
vpcId,
publicSubnetIds,
privateSubnetIds,
instanceType: 't4g.medium',
desiredCapacity: 3,
minSize: 3,
maxSize: 10,
deployDashboard: false,
enabledClusterLogTypes: ['api', 'audit', 'authenticator', 'controllerManager', 'scheduler'],
version: '1.24',
createOidcProvider: true,
});
const cluster = new eks.Cluster(clusterName);
~/.aws/config
file had output=yaml_stream
, while this provider assumes json
. It probably should set the env var AWS_DEFAULT_OUTPUT=json
when invoking aws eks get-token
--output json
white-balloon-205
03/25/2023, 9:01 PM