<p>I'd like to edit my secrets. The only way I'm aware of is <code>kubectl edit secret mysecret</code> which gets me yaml blob to edit. However, all secrets are base64 encoded which isn't an easy way to edit them.</p>

<p>Can I mount secrets to local volume somehow? Can I extract secrets to my localhost and edit them there? And lastly, can I edit some way to get plaintext keys/values (or just one key) instead of base64 encoded values.</p>

<p>P.S.
Can I see secret keys easily with kubectl? With <code>edit</code> I see them, but when I'm only interested in keys, not the values.</p>

<p><strong>I would highly recommend on using</strong> <a href="https://github.com/derailed/k9s" rel="nofollow noreferrer">k9s</a> (not only for this purpose, but also as a lightweight k8s CLI management tool).</p>
<p>As you can see below (ignore all white placeholders), when your cluster's context is set on terminal you just type <code>k9s</code> and you will hit a nice terminal where you can inspect all cluster resources.</p>
<p>Just type <code>&quot;:&quot;</code> and enter the resource name (<em>secrets</em> in this case) which will appear in the middle of screen.</p>
<p>Then you can choose a secret with the up and down arrows and type <code>e</code> to edit it (green arrow):</p>
<p><a href="https://i.stack.imgur.com/lF4Ci.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lF4Ci.png" alt="enter image description here" /></a></p>
