Switch to batch/v1 API for cronjob and Ingress to networking.k8s.io/v1
On installing with kubernetes 1.21, we get this warning:
batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob
Also switch the Ingress to the new API:
extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
Edited by Maarten de Waard