Kubernetes

Explain the need for Kustomize by describing actual use cases

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

  • You have an helm chart of an application used by multiple teams in your organization and there is a requirement to add annotation to the app specifying the name of the of team owning the app
    • Without Kustomize you would need to copy the files (chart template in this case) and modify it to include the specific annotations we need
    • With Kustomize you don't need to copy the entire repo or files
  • You are asked to apply a change/patch to some app without modifying the original files of the app
    • With Kustomize you can define kustomization.yml file that defines these customizations so you don't need to touch the original app files