Using Kustomize: patches for custom resources and operators

I have recently been looking to template a Kubernetes operator definition file, to avoid repeating a chunk of configuration that can’t be neatly handled by the operator itself. For various reasons, Kustomize is the tool that’s available for me to do this - if you don’t have these constraints, there might be better tools for the job!

If you do have these constraints, however, here are some tips that might be of use to you:

Written by Feroz Salam on 10 April 2020