CKA Certification Course - Certified Kubernetes Administrator

Kustomize Basics 2025 Updates

Kustomize ApiVersion Kind

When managing Kubernetes resources with Kustomize, your configuration is defined in a kustomization.yaml file. While the ApiVersion and Kind properties are technically optional—since Kustomize assigns default values—they are essential for maintaining stability, especially when updates might introduce breaking changes.

Below is an example of a properly configured kustomization.yaml file:

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

Note

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.

For additional insights on using Kustomize with Kubernetes, visit the Kubernetes Documentation.

Watch Video

Watch video content

Previous
Kustomize Output