<p>I'm new to Kubernetes and was following some examples for setting contexts. Now I can't seem to get any objects on my server, or I'm talking to the wrong server. I see...</p>
<pre><code>$ kubectl config view
apiVersion: v1
clusters:
- cluster:
    server: &quot;&quot;
  name: sandbox
- cluster:
    certificate-authority-data: DATA+OMITTED
    server: https://redacted.gr7.us-east-1.eks.amazonaws.com
  name: sandbox.us-east-1.eksctl.io
contexts:
- context:
    cluster: sandbox.us-east-1.eksctl.io
    user: me@company.com@sandbox.us-east-1.eksctl.io
  name: me@company.com@sandbox.us-east-1.eksctl.io
- context:
    cluster: sandbox
    namespace: kube-system
    user: &quot;&quot;
  name: sandbox
current-context: sandbox
kind: Config
preferences: {}
users:
- name: me@company.com@sandbox.us-east-1.eksctl.io
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1alpha1
      args:
      - token
      - -i
      - sandbox
      command: aws-iam-authenticator
      env:
      - name: AWS_STS_REGIONAL_ENDPOINTS
        value: regional
      - name: AWS_DEFAULT_REGION
        value: us-east-1
</code></pre>
<p>I see the cluster in AWS EKS, and see pods, deployments, etc. But when I do the following</p>
<pre><code>$ kubectl get pods -A
error: the server doesn't have a resource type &quot;pods&quot;
$ kubectl get nodes -A
error: the server doesn't have a resource type &quot;nodes&quot;
</code></pre>
<p>What gives?</p>

Chris F
<p>Your current context is <code>sandbox</code>, try changing the current-context with <a href="https://kubernetes.io/docs/reference/kubectl/cheatsheet/" rel="nofollow noreferrer">kubectl</a> or directly in <code>~/.kube/config</code>.</p>
<pre class="lang-sh prettyprint-override"><code>$ kubectl config get-contexts
$ kubectl config use-context me@company.com@sandbox.us-east-1.eksctl.io
</code></pre>
