<p>I have multiple deployments that use the same Ingress <code>server-snippet</code>, however I don't want to re-write that config in each deployment yaml. How can I organize my configs in a DRY manner?</p>
<p>I've looked into ConfigMaps, but I'm confused on whether or not they apply to my use case.</p>

Ben Davis
<p>I general, when I'm DRYing up my manifests, in general, I reach for <a href="https://get-ytt.io" rel="nofollow noreferrer"><code>ytt</code></a>. It's pretty easy to pull snippets (yes, even entire resources/YAML docs) into a function and then invoke that function wherever it's needed.</p>
<p>Here's an example: <a href="https://get-ytt.io/#example:example-function" rel="nofollow noreferrer">https://get-ytt.io/#example:example-function</a></p>
