apiVersion

The manifest field that names which API group and version defines an object, such as v1 or apps/v1.

In more detail

Together with kind, apiVersion tells the API server which schema to check the rest of the file against. Core objects such as Pod and Service use plain v1, while others belong to a named group such as apps/v1 or networking.k8s.io/v1. Versions like v1beta1 or v1alpha1 are earlier, less stable forms of an API.

Examples

apiVersion: apps/v1
kubectl api-versions | head -4

Related terms

Taught in

References

Certification courses