Question: what is apiversion in yaml file?
Answer: yaml file for the Kubernetes object you want to create, you'll need to set values for the following fields: apiVersion - Which version of the Kubernetes API you're using to create this object. ... metadata - Data that helps uniquely identify the object, including a name string, UID , and optional namespace.