Table of Contents

apiVersion

apiVersion defines which version of the Kubernetes API you are using.

Why it matters

Kubernetes evolves over time:

So you must specify the correct version.

Examples

Example usage

apiVersion: apps/v1

Key idea

apiVersion = “which Kubernetes API understands this object”