<p>I have a Kubernetes cluster with following versions:</p>
<pre><code>$ kubectl version
Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;22&quot;, GitVersion:&quot;v1.22.1&quot;, GitCommit:&quot;632ed300f2c34f6d6d15ca4cef3d3c7073412212&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2021-08-19T15:38:26Z&quot;, GoVersion:&quot;go1.16.6&quot;, Compiler:&quot;gc&quot;, Platform:&quot;darwin/amd64&quot;}
Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;16&quot;, GitVersion:&quot;v1.16.13&quot;, GitCommit:&quot;aac5f64a5218b0b1d0138a57d273a12db99390c9&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2021-01-18T07:43:30Z&quot;, GoVersion:&quot;go1.13.9&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
WARNING: version difference between client (1.22) and server (1.16) exceeds the supported minor version skew of +/-1
</code></pre>
<p>I have a CronJob in my Kubernetes cluster.</p>
<pre><code>apiVersion: batch/v1beta1
kind: CronJob
metadata:
   name: abc-cronjob
   namespace: abc-namespace
...
</code></pre>
<p>The Kubernetes cluster recognizes the api resource for the cron job.</p>
<pre><code>$ kubectl -n abc-namespace api-resources
NAME                              SHORTNAMES   APIVERSION                        NAMESPACED   KIND
...
cronjobs                          cj           batch/v1beta1                     true         CronJob
...
</code></pre>
<p>I am trying to create a manual job for this, but I am facing this error:</p>
<pre><code>$ kubectl -n abc-namespace create job abc-job --from=cronjob/abc-cronjob
error: unknown object type *v1beta1.CronJob
</code></pre>
<p>Can anyone help in this?</p>

<p>Got the issue now. The version difference was causing the main problem. Installed the version matching the one in server side and ran the query again without issues.</p>
