vmware-archive / kubeless

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

certificate signed by unknown authority #882

Open attardi opened 6 years ago

attardi commented 6 years ago

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

What happened: $ kubeless get-server-config FATA[0000] Unable to read the configmap: Error while fetching config location: Get https://90.147.161.27:443/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/functions.kubeless.io: x509: certificate signed by unknown authority

What you expected to happen: return the configuration

How to reproduce it (as minimally and precisely as possible): See above.

Anything else we need to know?:

Environment:

andresmgot commented 6 years ago

Hi @attardi, apparently the configured certificate-authority data set in the default ~/.kube/config is not recognized. It may an issue related to K8s 1.11, right now the supported versions are 1.9 and 1.10, would you mind sending the structure of your ~/.kube/config to try to isolate the issue?

benatkin commented 4 years ago

I was able to solve this w/ microk8s by running microk8s.config > ~/.kube/config instead of kubectl config view > ~/.kube/config - it turns out there's another way which is to add --raw, as in kubectl config view --raw > ~/.kube/config, but microk8s.config is shorter