<p>I am using the following command to create a configMap.</p>

<pre><code>kubectl create configmap test --from-file=./application.properties --from-file=./mongo.properties --from-file=./logback.xml 
</code></pre>

<p>Now, I have modified a value for a key from mongo.properties which i need to update in kubernetes.</p>

<p><strong>Option1 :-</strong></p>

<pre><code>kubectl edit test
</code></pre>

<p>Here, it opens the entire file. But, I want to just update mongo.properties and hence want to see only the mongo.properties.  Is there any other way?</p>

<blockquote>
  <p>Note :- I dont want to have mongo.properties in a separate configMap.</p>
</blockquote>

<p>Thanks</p>

<p>Now you can. Just throw: <code>kubectl edit configmap &lt;name of the configmap&gt;</code> on your command line. Then you can edit your configuration.</p>
