<pre><code>minikube start
kubectl config use-context minikube
kubectl create ns my-namespace
</code></pre>

<p>About half the time this succeeds and about half the time I get an error creating the namespace:
<strong>Unable to connect to the server: dial tcp 192.168.99.100:8443: getsockopt: operation timed out</strong></p>

<p>Any thoughts?</p>

Aliisa Roe
<p>There's a lot of configuration variation possible with minikube, so I'm going to have to make a bit of a leap and assume you're running pretty close to the default configuration.</p>

<p>By default, the VM minikube runs on Virtual Box, using a dynamically allocated IP address. Frequently it will be assigned 192.168.99.100, but there's no guarantee that it will get this IP, and it can be something else.</p>

<p>Run <code>minikube ip</code> and see if the IP minikube is using is something other than 192.168.99.100. If it is, then check your Kubeconfig and see if the IP address matches.</p>

<p><code>minikube start</code> usually updates your kubeconfig with the correct IP, so try running that if there's a mismatch and it should fix your issue.</p>
