kubernetes / sample-apiserver

Reference implementation of an apiserver for a custom Kubernetes API.
Apache License 2.0
533 stars 212 forks source link

Failure to communicate with sample-apiserver using Kubectl #26

Closed zanetworker closed 6 years ago

zanetworker commented 6 years ago

Hi,

So I have created all the required certs and provided them in my kubeconfig while running sample-apiserver as a stand-alone component.

What I am seeing from the kubectl is the following error Unable to connect to the server: net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x15\x03\x01\x00\x02\x02" . On the other hand I am getting http: TLS handshake error from [::1]:50654: tls: first record does not look like a TLS handshake on the server side.

Any ideas?

zanetworker commented 6 years ago

My bad, I forgot to specify https://.