Minikube 0.5.0 : cannot validate certificate for 192.168.99.101 because it doesn't contain any IP SANs

7/7/2016

starting today with a brand new install of Minikube 0.5.0 and Kubectl 1.3.0 (my machine is running ubuntu 14.04 64 bits).

Just start Minikube with minikube start and everything seems to run fine (Vbox machine is created and started) but contacting the cluster seems impossible due to certificate issue:

laurent@ponyo:~$kubectl cluster-info
Unable to connect to the server: x509: cannot validate certificate for 192.168.99.101 because it doesn't contain any IP SAN

kubectl config view runs fine and outputs the following config

laurent@ponoy:~$ kubectl config view
apiVersion: v1
clusters:
- cluster:
    certificate-authority: /home/laurent/.minikube/apiserver.crt
    server: https://192.168.99.101:443
  name: minikube
contexts:
- context:
    cluster: minikube
    user: minikube
  name: minikube
current-context: minikube
kind: Config
preferences: {}
users:
- name: minikube
 user:
   client-certificate: /home/laurent/.minikube/apiserver.crt
   client-key: /home/laurent/.minikube/apiserver.key

Any clue on this issue ? Is there any extra step before starting minikube regarding cert provisionning ? Is there any pointer on how to solve that ?

Thank you for help,

-- lbroudoux
kubernetes
x509certificate

1 Answer

10/18/2016

You can now pass in env vars into the minikube VM (such as HTTP_PROXY or HTTPS_PROXY)

https://github.com/kubernetes/minikube#using-minikube-with-an-http-proxy

-- Matt Rickard
Source: StackOverflow