<p>I'm running <code>kubectl create -f notRelevantToThisQuestion.yml</code></p>

<p>The response I get is:</p>

<blockquote>
  <p>Error from server (NotFound): the server could not find the requested
  resource</p>
</blockquote>

<p>Is there any way to determine which resource was requested that was not found?</p>

<p><code>kubectl get ns</code> returns</p>

<blockquote>
  <p>NAME          STATUS    AGE<br> default       Active    243d<br>
  kube-public   Active    243d<br> kube-system   Active    243d<br></p>
</blockquote>

<p>This is not a cron job.<br>
Client version 1.9<br>
Server version 1.6</p>

<p>This is very similar to <a href="https://devops.stackexchange.com/questions/2956/how-do-i-get-kubernetes-to-work-when-i-get-an-error-the-server-could-not-find-t?rq=1">https://devops.stackexchange.com/questions/2956/how-do-i-get-kubernetes-to-work-when-i-get-an-error-the-server-could-not-find-t?rq=1</a> but my k8s cluster has been deployed correctly (everything's been working for almost a year, I'm adding a new pod now).</p>

Glen Pierce
<p>To solve this, downgrade the client or upgrade the server. In my case I've upgraded server (new minikube) but forget to upgrade client (kubectl) and end up with those versions.</p>
<pre><code>$ kubectl version --short
Client Version: v1.9.0
Server Version: v1.14.1
</code></pre>
<p>When I'd upgraded client version (in this case to 1.14.2) then everything started to work again.</p>
<p>Instructions how to install (in your case upgrade) client are here <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/tools/install-kubectl</a></p>
