Kubernetes 1.26 Version Notes
Starting from Kubernetes 1.25 to 1.26, the official has deprecated many API versions. It is recommended that you carefully check the API versions in the cluster and the configuration of Master components before upgrading. The following list is for your reference.
API deprecation
Cronjob
After Kubernetes 1.25, the batch/v1beta1 API version for CronJob (scheduled tasks) is no longer provided, but the batch/v1 API version can be used. This API has been available since Kubernetes 1.21.
EndpointSlice
After Kubernetes 1.25, the discovery.k8s.io/v1beta1 API version for EndpointSlice is no longer provided, but the discovery.k8s.io/v1 API version can be used. This API has been available since Kubernetes 1.21.
Event
After Kubernetes 1.25, the events.k8s.io/v1beta1 API version for Event is no longer provided, but the events.k8s.io/v1 API version can be used. This API has been available since Kubernetes v1.19.
PodDisruptionBudget
After Kubernetes 1.25, the policy/v1beta1 API version for PodDisruptionBudget is no longer provided, but the policy/v1 API version can be used. This API has been available since Kubernetes 1.21.
Notable Change in policy/v1: When setting spec.selector to empty ({}) in the policy/v1 version of PodDisruptionBudget, it will select all Pods in the namespace. In the policy/v1beta1 version, an empty spec.selector does not select any Pods. If spec.selector is not set, no Pods will be selected in both API versions.
PodSecurityPolicy
After Kubernetes 1.25, the policy/v1beta1 API version for PodSecurityPolicy (PSP) is no longer provided, and the PSP admission controller will be removed. Migrate PSPs to Pod Security Admission or third-party admission webhooks.
For more information on migration guides, please see Migrating from PodSecurityPolicy to the Built-in PodSecurity Admission Controller. For more information on deprecation, please see PodSecurityPolicy Deprecation: Past, Present, and Future.
RuntimeClass
After Kubernetes 1.25, the node.k8s.io/v1beta1 API version for RuntimeClass is deprecated. Use node.k8s.io/v1 (available since Kubernetes 1.20).
HorizontalPodAutoscaler
After Kubernetes 1.25 version, autoscaling/v2beta1 API version of HorizontalPodAutoscaler (Pod horizontal auto scaling) is no longer provided.
After Kubernetes 1.26 version, autoscaling/v2beta2 API version of HorizontalPodAutoscaler is no longer provided, but autoscaling/v2 API version can be used, which is available from Kubernetes 1.23 version.
Flow control resources
After Kubernetes 1.26 version, flowcontrol.apiserver.k8s.io/v1beta1 API version of FlowSchema and PriorityLevelConfiguration is no longer provided. But from Kubernetes 1.23 version, flowcontrol.apiserver.k8s.io/v1beta2 can be used and from Kubernetes 1.26 version, flowcontrol.apiserver.k8s.io/v1beta3 can be used.