title: Kubernetes kubectl command got error
body: <p>Using Rancher master installed K8S cluster on CentOS 7.(3 hosts)
  When run <code>kubectl version</code> at master host, got error:</p>
  
  <pre><code>Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.4", GitCommit:"9befc2b8928a9426501d3bf62f72849d5cbcd5a3", GitTreeState:"clean", BuildDate:"2017-11-20T05:28:34Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
  error: You must be logged in to the server (the server has asked for the client to provide credentials)
  </code></pre>
  
  <p>I copied kube config file from Rancher dashboard to local(edited secret information):</p>
  
  <pre><code>apiVersion: v1
  kind: Config
  clusters:
  - cluster:
      api-version: v1
      insecure-skip-tls-verify: true
      server: "https://192.168.0.1:8080/r/projects/1a7/kubernetes"
    name: "k8s"
  contexts:
  - context:
      cluster: "k8s"
      user: "k8s"
    name: "k8s"
  current-context: "k8s"
  users:
  - name: "k8s"
    user:
      username: "111222333444AAABBBCCC"
      password: "111222333444AAABBBCCC111222333444AAABBBCCC"
  </code></pre>
  
  <p>Why?</p>