<ol>
<li><p>I created a simple text file on my local machine</p>
</li>
<li><p>I created a configmap out of that test file:
kubectl create configmap test-configm --from-file=test-file.txt</p>
</li>
<li><p>I added the volumemounts and volume to my deployment and verified the file is in my pods.</p>
</li>
</ol>
<p>Now I want to modify the test-file.txt on my local machine and then update the configmap I created in step 2 so that all my pods can get the new version of that file, how can I accomplish this?</p>
<p>Thanks!</p>

johnb928
<p>Per <a href="https://kubernetes.io/docs/concepts/configuration/configmap/" rel="noreferrer">https://kubernetes.io/docs/concepts/configuration/configmap/</a> mounted configMaps are updated automatically. You would simply have to update the configMap using a dry-run followed by imperative command like this.</p>
<pre><code>kubectl create configmap test-configm --from-file=test-file.txt --dry-run -o yaml | kubectl apply -f -
</code></pre>
