K8s by Example: Kustomize Basics
| Kustomize customizes YAML without templates. Compose resources, add labels, and change images, all declaratively. Built into kubectl since v1.14. |
| kustomization.yaml | |
| Kustomization file lists resources to include. All referenced resources are combined into a single output. Can reference local files or remote URLs. | |
| kustomization-labels.yaml | |
| Add common labels and annotations to all resources. Great for consistent tagging across environments. Labels are also added to selectors automatically. | |
| kustomization-images.yaml | |
| Change namespace for all resources. Override image tags without editing manifests. | |
| kustomization-generators.yaml | |
| Generate ConfigMaps and Secrets from files or literals. Kustomize adds a hash suffix for automatic rollouts when content changes. | |
| terminal | |
| Apply with kubectl or preview changes. | |