title: Kubernetes delete secret docker-registry error Unable to connect to the server: x509
body: <p>I have create two secret docker-registrys using with these step:</p>
  
  <pre><code>$ kubectl create secret docker-registry my-secret --docker-username=burak --docker-password=deniz --docker-email=burak@...
  
  $ kubectl create secret docker-registry secret --docker-username=burak --docker-password=deniz --docker-email=burak@...
  </code></pre>
  
  <p>After these step I tried to get deployment with using that:</p>
  
  <pre><code>$ kubectl get deployment
  </code></pre>
  
  <p>and I have faced to that ERROR:</p>
  
  <blockquote>
    <p>Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "minikubeCA")</p>
  </blockquote>
  
  <p>and When I have tried to delete or get these secret docker-registrys,I faced to same Error.</p>
  
  <p>How Can I delete these docker-registrys. Can you help me?.</p>
  
  <p>Thank you for your answers.</p>