Hardcoding the ApiVersion and Kind values is a best practice that helps ensure compatibility and prevents unexpected behavior as new versions of Kustomize are released.
This article discusses the importance of ApiVersion and Kind in Kustomize for managing Kubernetes resources effectively.
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# Kubernetes resources to be managed by Kustomize
resources:
- nginx-depl.yaml
- nginx-service.yaml
# Customizations to be applied
commonLabels:
company: KodeKloud
Was this page helpful?