Kustomize
Medium
Troubleshooting
A component's kustomization.yaml has no kind line, and an overlay lists it under components. What happens?
Select your answer:
Show answer and explanation
Answer: The build fails, because a missing kind defaults to Kustomization
Explanation
When kind is empty, Kustomize fills in Kustomization. Under components that fails with "expected kind 'Component' for path '...' but got 'Kustomization'". The apiVersion line is the optional one: with kind: Component set, Kustomize fills in v1alpha1.
More medium Kustomize questions
- An overlay sets namePrefix: prod- and includes a component that adds a PodDisruptionBudget named web. What is the PodDisruptionBudget called in the output?
- Why can adding a label through commonLabels make kubectl apply fail for an existing Deployment?
- How do you add a label to every resource without changing any selectors?
- What does an images entry with name: nginx and a digest: sha256:... value do?
- A strategic merge patch lists one container with a new image. What happens to the base's other containers?
- How do you remove a container from a base Deployment with a strategic merge patch?