<p>We are having a problem with installing CronJob using Helm chart on GKE <strong>Autopilot</strong> cluster.
(when we installing the same Helm chart on Standard GKE cluster with the same GKE version installation works perfectly )</p>
<p><strong>GKE version- 1.21.5-gke.1302</strong></p>
<p>My CronJob.yaml:</p>
<pre><code>apiVersion: batch/v1
kind: CronJob
metadata:
  name: test01-chronjob
</code></pre>
<p><em>While using <strong>batch/v1beta1</strong> version:</em></p>
<p>[WARNING] templates/test01.yaml: batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob</p>
<p><em>While using <strong>batch/v1</strong> version:</em></p>
<p>W0125 15:08:32.558228 23300 warnings.go:70] Autopilot set default resource requests for Pod namespace01/test01, as resource requests were not specified. See <a href="http://g.co/gke/autopilot-defaults" rel="nofollow noreferrer">http://g.co/gke/autopilot-defaults</a>.</p>
<p>Error: INSTALLATION FAILED: admission webhook &quot;workload-defaulter.common-webhooks.networking.gke.io&quot; denied the request: no kind &quot;CronJob&quot; is registered for version &quot;batch/v1&quot; in scheme &quot;pkg/runtime/scheme.go:100&quot;</p>
<p>Would love some help :)</p>

shirab
<p>Sorry about this.  This issue has been fixed in <strong>GKE version- 1.21.9-gke.300</strong> which is currently available in the RAPID and REGULAR channels and will eventually be available in the STABLE channel.  Clusters should start being upgraded over the next few weeks.</p>
<p>You can check both the default version as well as available versions for a given release channel in each region using the following commands:</p>
<p>default version for a channel:</p>
<pre><code>gcloud container get-server-config --flatten=&quot;channels&quot; --filter=&quot;channels.channel=${CHANNEL}&quot; \
    --format=&quot;yaml(channels.channel,channels.defaultVersion)&quot; --region ${REGION}
</code></pre>
<p>available versions for a channel:</p>
<pre><code>gcloud container get-server-config --flatten=&quot;channels&quot; --filter=&quot;channels.channel=${CHANNEL}&quot; \
        --format=&quot;yaml(channels.channel,channels.validVersions)&quot; --region ${REGION}
</code></pre>
<p>Replace ${CHANNEL} with one of RAPID,REGULAR,STABLE and ${REGION} with the region in which your cluster is deployed.</p>
<p>If want to upgrade prior to your cluster(s) being automatically upgraded, you can do the following assuming you are on the RAPID or REGULAR channel:</p>
<pre><code>gcloud container clusters upgrade ${CLUSTER_NAME} --master --cluster-version 1.21.9-gke.300

gcloud container clusters upgrade ${CLUSTER_NAME} --cluster-version 1.21.9-gke.300
</code></pre>
