In Kubernetes, several common API versions are used for different resource types. Here are some of them:
-
v1: This is the core API version used for basic resources such as Pods, Services, ConfigMaps, Secrets, and Namespaces.
- Example:
apiVersion: v1
- Example:
-
apps/v1: This version is used for managing applications and includes resources like Deployments, StatefulSets, and DaemonSets.
- Example:
apiVersion: apps/v1
- Example:
-
batch/v1: This version is used for batch processing resources such as Jobs and CronJobs.
- Example:
apiVersion: batch/v1
- Example:
-
extensions/v1beta1: Previously used for resources like Ingress and NetworkPolicy, but many have been moved to stable versions.
- Example:
apiVersion: extensions/v1beta1(Note: This is deprecated in newer Kubernetes versions)
- Example:
-
networking.k8s.io/v1: This version is used for networking resources such as Ingress and NetworkPolicy.
- Example:
apiVersion: networking.k8s.io/v1
- Example:
-
rbac.authorization.k8s.io/v1: This version is used for Role-Based Access Control (RBAC) resources like Roles and RoleBindings.
- Example:
apiVersion: rbac.authorization.k8s.io/v1
- Example:
These API versions help ensure that the resources are managed correctly according to the features and behaviors defined in each version.
