title: kubectl unable to connect to server: x509: certificate signed by unknown authority
body: <p>i'm getting an error when running kubectl one one machine (windows)</p>
  
  <p>the k8s cluster is running on CentOs 7 kubernetes cluster 1.7
  master, worker</p>
  
  <p>Here's my .kube\config</p>
  
  <pre>
    <code>
  apiVersion: v1
  clusters:
  - cluster:
      certificate-authority-data: REDACTED
      server: https://10.10.12.7:6443
    name: kubernetes
  contexts:
  - context:
      cluster: kubernetes
      user: system:node:localhost.localdomain
    name: system:node:localhost.localdomain@kubernetes
  current-context: system:node:localhost.localdomain@kubernetes
  kind: Config
  preferences: {}
  users:
  - name: system:node:localhost.localdomain
    user:
      client-certificate-data: REDACTED
      client-key-data: REDACTED
    </code>
  </pre>
  
  <p>the cluster is built using kubeadm with the default certificates on the pki directory</p>
  
  <p>kubectl unable to connect to server: x509: certificate signed by unknown authority</p>