<p>I stored a RSA key as a secret for my pod, which is used as an environment variable, but my pod keep reporting error because format of my RSA key is incorrect.</p>

<p>However; the RSA key work just fine when used locally, so I believe that the RSA key is correct.</p>

<p>How can I set an RSA key as an environment variable on my pod correctly?</p>

Bhoomtawath Plinsut
<p>Look like the issue is <strong>\n</strong>. Just removing them from my RSA is enough to solve my issue.</p>
