Update kubernetes secrets doesn't update running container env vars : <p>Currenly when updating a kubernetes secrets file, in order to apply the changes, I need to run <code>kubectl apply -f my-secrets.yaml</code>. If there was a running container, it would still be using the old secrets. In order to apply the new secrets on the running container, I currently run the command <code>kubectl replace -f my-pod.yaml</code> .
I was wondering if this is the best way to update a running container secret, or am I missing something.</p>

<p>Thanks.</p>
