- A list of Kubernetes resources that Kustomize will manage.
- A section for customizations or transformations that will be applied to those resources.
- The
resourceslist enumerates the YAML files that Kustomize should process. - The
commonLabelstransformation adds an extra label with the keycompanyand the valueKodeKloudto every resource.
company: KodeKloud label as defined by the common label transformation.
The
kustomize build command generates the final configuration but does not deploy the resources to your cluster. To apply these configurations, you can redirect the output to kubectl using a command like kustomize build k8s/ | kubectl apply -f -.- Kustomize searches for a kustomization.yaml file in the target directory.
- The file lists the Kubernetes resources (manifests) to manage and specifies a set of transformations.
- Running the command
kustomize build k8s/processes these resources and outputs the finalized configuration.