<p>I have been trying to figure out how to consume a ConfigMap created using a ConfigMap generator  via Kustomize.</p>
<p>When created using Kustomize generators, the configMaps are named with a special suffix. See here:</p>
<p><a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#create-a-configmap-from-generator" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#create-a-configmap-from-generator</a></p>
<p>Question is how can this be referenced?</p>

<p>You don't reference it yourself. Kustomize recognizes where the configMap is used in the other resources (like a Deployment) and changes those references to use the name+hash.</p>
<p>The reason for this is so that if you change the configMap, Kustomize generates a new hash and updates the Deployment, causing a rolling restart of the Pods.</p>
<p>If you don't want this behavior, you can add the following to your <code>kustomization.yaml</code> file:</p>
<pre><code>generatorOptions:
  disableNameSuffixHash: true
</code></pre>
