title: "No resources found" from kubectl get for remote cluster
body: <p>I have kubectl configured for a multi-cluster setup involving local Kubernetes that comes with Docker Mac and a remote cluster using Minikube. When I switch context to my remote cluster kubectl can't find any resources like pods or services. Where can I look at logs to find out more? I do see the resources if I run kubectl on the actual remote machine.</p>
  
  <p>When I execute <code>kubectl version</code> I get this:</p>
  
  <pre><code>Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.11", GitCommit:"637c7e288581ee40ab4ca210618a89a555b6e7e9", GitTreeState:"clean", BuildDate:"2018-11-26T14:38:32Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"darwin/amd64"}
  Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.3", GitCommit:"721bfa751924da8d1680787490c54b9179b1fed0", GitTreeState:"clean", BuildDate:"2019-02-01T20:00:57Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
  </code></pre>
  
  <p><code>kubectl get componentstatus</code> returns:</p>
  
  <pre><code>NAME                 STATUS    MESSAGE              ERROR
  scheduler            Healthy   ok                   
  controller-manager   Healthy   ok                   
  etcd-0               Healthy   {"health": "true"}
  </code></pre>
  
  <p><code>kubectl cluster-info</code> returns:</p>
  
  <pre><code>Kubernetes master is running at https://remote-cluster-ip:8443
  KubeDNS is running at https://remote-cluster-ip:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
  </code></pre>
  
  <p>Executing <code>kubectl cluster-info dump</code> produces a ton of output.</p>
  
  <p>I followed these steps to get Minikube working and successfully deployed a sample app.
  <a href="https://kubernetes.io/docs/setup/minikube/" rel="nofollow noreferrer">https://kubernetes.io/docs/setup/minikube/</a></p>
  
  <p>I followed these steps for multi-cluster config:
  <a href="https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/</a></p>
  
  <p>I copied over all the crt and key files from .minikube to my local machine for use in the config. Here is my redacted config:</p>
  
  <pre><code>apiVersion: v1
  clusters:
  - cluster:
      insecure-skip-tls-verify: true
      server: https://localhost:6443
    name: docker-for-desktop-cluster
  - cluster:
      insecure-skip-tls-verify: true
      server: https://remote-cluster-ip:8443
    name: remote-cluster
  contexts:
  - context:
      cluster: docker-for-desktop-cluster
      user: docker-for-desktop
    name: docker-for-desktop
  - context:
      cluster: remote-cluster
      namespace: remote-cluster
      user: minikube
    name: remote-cluster
  current-context: remote-cluster
  kind: Config
  preferences: {}
  users:
  - name: docker-for-desktop
    user:
      client-certificate-data: REDACTED
      client-key-data: REDACTED
  - name: minikube
    user:
      client-certificate: /path/to/local/client.crt
      client-key: /path/to/local/client.key
  </code></pre>