k8wiz
Kustomize
Hard
Mutation

An overlay lists two components: first one that sets nameSuffix: -b, then one that adds a Deployment named proxy. What is the Deployment called after the build?

Select your answer:

Show answer and explanation

Answer: proxy, because the suffix ran before the Deployment was added

Explanation

Components run one at a time in list order, and each one applies its transformers to the resources gathered so far. The suffix component runs while proxy doesn't exist yet, so only earlier resources get -b. List the suffix component last, or set nameSuffix in the overlay itself, to rename everything.

Read more about Kustomize