Just like other Kubernetes resource files, you can specify the ApiVersion and Kind properties explicitly in your kustomization.yaml file. Although these properties are optional—since Kustomize assigns default values by default—it is highly recommended to hardcode them. This proactive approach helps safeguard your configuration against potential breaking changes in future Kustomize releases. Below is an example of a kustomization.yaml file that includes the ApiVersion and Kind properties, along with a defined list of resources and common labels for customization:Documentation Index
Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
Use this file to discover all available pages before exploring further.
Hardcoding the ApiVersion and Kind properties ensures compatibility and clarity in your configuration files, making them more predictable and easier to manage.