Welcome to the Linux Foundation Forum!

Metadata in YAML

Hi,
I have a question that isn't specific to any lab...

I have been using the API documentation to help write YAML content, and trying to understand the various values that are permissible in ObjectMeta for each "kind".

Sometimes label values are important, and sometimes annotations are important - but I can't see where that is described in the doco. For example, for an object of kind Ingress, you need an annotation of kubernetes.io/ingress.class

No where in the documentation can I find guidance on what is needed when. This isn;t limited to the Ingress kind, it is a common problem. Where can I find this detail?

Categories

Upcoming Training