databricks / click

The "Command Line Interactive Controller for Kubernetes"
Apache License 2.0
1.49k stars 84 forks source link

Hyper error: invalid certificate: InvalidReferenceName #45

Closed t0mmyt closed 2 years ago

t0mmyt commented 6 years ago

I'm getting this error using a cluster spun up with kubespray and using tls certificates for auth.

Hyper error: invalid certificate: InvalidReferenceName

.kube/config looks like the following:

apiVersion: v1
kind: Config
preferences: {}

clusters:
- cluster:
    server: https://172.17.8.101:6443
    certificate-authority: /home/tom/.kube/ca-development.pem
  name: development

users:
- name: development-admin
  user:
    client-certificate: /home/tom/.kube/admin-.pem
    client-key: /home/tom/.kube/admin-key.pem

contexts:
- context:
    cluster: development
    user: development-admin
  name: development

current-context: development

I've tried adding insecure-skip-tls-verify: true to the user but it has no effect. kubectl works fine without error. Masters are k8s v1.9.2

nabadger commented 6 years ago

I'm getting the same with a minikube v1.9.0 instance and Click 0.3.1.

kubectl also works fine.

gtseres commented 6 years ago

Same here:

OS: MacOS High Sierra 10.13.3 Click 0.3.0 minikube version: v0.25.2 k8sl version: 1.9.4

nicklan commented 2 years ago

This should be fixed with the new reqwest client. Please test and open a new issue if you're still have trouble.