In Kubernetes 1.25,
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: my-awesome-product-extreme-job
namespace: ytyng
spec:
...
When I applied this CronJob manifest, I encountered the following error:
resource mapping not found for name: "my-awesome-product-extreme-job" namespace: "ytyng" from "sync.cronjob.yml": no matches for kind "CronJob" in version "batch/v1beta1"
ensure CRDs are installed first
In Kubernetes 1.25, batch/v1beta1
is not supported, so you need to update it to batch/v1
to register it successfully.
apiVersion: batch/v1
kind: CronJob
metadata:
name: my-awesome-product-extreme-job
namespace: ytyng
spec:
...
Comments