apiVersion defines which version of the Kubernetes API you are using.
—
Kubernetes evolves over time:
So you must specify the correct version.
apiVersion: apps/v1
apiVersion = “which Kubernetes API understands this object”