<p>How can I modify the values in a Kubernetes <code>secret</code> using <code>kubectl</code>?</p>
<p>I created the secret with <code>kubernetes create secret generic</code>, but there does not seem to be a way to modify a secret. For example, to add a new secret-value to it, or to change a secret-value in it.</p>
<p>I assume i can go 'low-level', and write the yaml-file and do a <code>kubectl edit</code> but I hope there is a simpler way.</p>
<p>(I'm using <code>kubernetes 1.2.x</code>)</p>

<p>The most direct (and interactive) way should be to execute <code>kubectl edit secret &lt;my secret&gt;</code>. Run <code>kubectl get secrets</code> if you'd like to see the list of secrets managed by Kubernetes.</p>
