Common API versions in Kubernetes include:
-
v1: This is the stable version for core resources like Pods, Services, ConfigMaps, and Secrets.
-
apps/v1: Used for managing applications, including Deployments, StatefulSets, and DaemonSets.
-
batch/v1: Used for managing batch jobs, including Jobs and CronJobs.
-
extensions/v1beta1: Previously used for resources like Ingress, but now deprecated in favor of networking.k8s.io/v1.
-
networking.k8s.io/v1: Used for networking resources like Ingress and NetworkPolicies.
-
rbac.authorization.k8s.io/v1: Used for Role-Based Access Control (RBAC) resources like Roles and ClusterRoles.
These versions help ensure that the resources are managed according to the correct specifications and behaviors defined in the respective API versions.
