Kustomize: Specifying apiVersion and kind
When authoring your kustomization.yaml, explicitly declaring the apiVersion and kind fields is a recommended best practice. Although Kustomize infers sensible defaults when they’re omitted, specifying them ensures compatibility with future Kustomize releases and helps prevent unexpected breaking changes.
Example kustomization.yaml
Defining
apiVersion and kind in your kustomization.yaml locks in the schema and ensures that Kustomize processes your resources exactly as intended, even after upgrades.