<p>I encountered the following error when added <strong>spring-cloud-starter-kubernetes-config</strong> dependency to my pom.xml:</p>
<pre><code>io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred. Caused by: java.security.cert.CertificateException: Could not parse certificate: java.io.IOException: Empty input Caused by: java.io.IOException: Empty input
</code></pre>
<p>To disable k8s, I added in bootstrap.yml following param:</p>
<pre><code>spring:
  cloud:
    kubernetes:
      enabled: false
</code></pre>
<p>But even after that nothing changed and the error remained.</p>
<p>Where else should I look? What parameter should I add so that if I have this dependency in pom.xml, I disable Kubernetes when running tests?</p>

Elena
<p>That problem could happen due to the installed <code>kubectl</code>. The easiest way to avoid this problem - rename <code>~/.kube</code> (directory with configs) to some other name like <code>~/.kube-hide</code></p>
<pre><code>mv ~/.kube ~/.kube-hide
</code></pre>
<p>And when you will need to use your <code>kubectl</code> rename it back</p>
