<p>I'm a newbie on K8s, and now i have some questions about his best practices.</p>
<p>I'm creating a Secret to save my sensitive data and i came across kubernetes docs saying something about <code>data:</code>, where the content must be saved on base64 string and <code>stringData:</code> where is not needed, what is the best practice in this case, save on data or stringData?</p>
<p>If i choose <code>data:</code>, will be a moment when kubernetes will translate it back to it's original or i have to do it mannually?</p>

Plinio Fabrycio
<p>In general the &quot;stringData&quot; is more comfortable so in the &quot;stringData&quot; property you can put your data in plain text and kubernetes then writes it base64 encoded for you into the &quot;data&quot; property of the secret. If you directly want to set the &quot;data&quot; property you need to manually base64 encode it</p>
