<p>I have a folder in my server that I want to update inside a cointaier in a pod. How do I do that without deleting the Secret?</p>

<p>I know that the following creates my secret:
<code>
oc create secret generic privkey --from-file=/opt/privkey
</code></p>

<p>I know that the following deletes the secret:</p>

<p><code>
oc delete secret generic privkey
</code></p>

<p>Is there a way to do that without deleting?
I am fine if I have to delete the pod.</p>

<p>try this:</p>

<pre><code>oc create secret generic privkey --from-file=/opt/privkey --dry-run -o yaml | oc replace -f -
</code></pre>
