k8wiz
Kustomize
Medium
Concepts

An overlay sets namePrefix: prod- and includes a component that adds a PodDisruptionBudget named web. What is the PodDisruptionBudget called in the output?

Select your answer:

Show answer and explanation

Answer: prod-web, because the overlay's transformers run after its components

Explanation

Kustomize loads an overlay's resources, runs its generators, then processes its components, and only then runs the overlay's own transformers such as namePrefix. By that point the component's PodDisruptionBudget is part of the set, so it gets the prefix like every other resource.

Read more about Kustomize