vmware-archive / kubeless

Kubernetes Native Serverless Framework
https://kubeless.io
Apache License 2.0
6.86k stars 754 forks source link

Kubeless CLI can't parse kubeconfig #1042

Open josh-ferrell-sas opened 5 years ago

josh-ferrell-sas commented 5 years ago

Is this a BUG REPORT or FEATURE REQUEST?: BUG REPORT

What happened: kubeless CLI errors on any command with the following; FATA[0000] Can not get kubernetes config: invalid configuration: no configuration has been provided

What you expected to happen: kubeless CLI should be able to parse bare kubeconfig and run from a controller node against localhost:8080.

How to reproduce it (as minimally and precisely as possible): Run any kubeless CLI function from a controller node with the kubeconfig below.

Anything else we need to know?: ~/.kube/config; apiVersion: v1 clusters: [] contexts:

Environment:

andresmgot commented 5 years ago

Hi @josh-ferrell,

Right now Kubeless needs a valid configuration in order to access the cluster. We are using the same approach than kubectl. Are you able to access your cluster using kubectl?

josh-ferrell-sas commented 5 years ago

Yes we are. If no cluster is specified kubectl uses the localhost access on port 8080. It doesn't require authorization or authentication but can only be accessed by having access to the host running the apiserver.