<h1><strong>Hi world !</strong></h1>
<h1>My problem :</h1>
<p>I have one kubernetes cluster with many pods that run the same symfony app. On this app, I make a request on HERE's api for geocoding. HERE sends me a JWT token available for 24h. I would like to save this token in kubernetes, in this way, all pods/app have the same token.</p>
<h1>My question is :</h1>
<p>Is there a good practice, approved solution, to get a jwt token on external API and save it in kubernetes for provide it to my pods ?</p>

cisco_bro
<p>You can use a <a href="https://kubernetes.io/docs/concepts/configuration/secret/" rel="nofollow noreferrer">kubernetes secret</a> for storing the token. Mount the secret in the pod for using it to call external API.</p>

<p>Here is the <a href="https://kubernetes.io/docs/tasks/inject-data-application/distribute-credentials-secure/" rel="nofollow noreferrer">guide</a> on distributing credentials securely using secrets.</p>

<p>As a side note kubernetes itself uses secret to store service account credential which is a JWT token. So this approach is approved and mainstream.</p>
