<p>I have this json</p>
<pre><code>{'kind': 'Secret', 'foo': 'secret_value'}
</code></pre>
<p>How can I use this json to create a secret in Kubernetes?</p>
<p>I want to run the equivalent of</p>
<pre><code>kubectl create secret {'kind': 'Secret', 'foo': 'secret_value'}
</code></pre>

jor2
<p><code>kubectl create secret generic secret-name --from-file=./your-file.json</code></p>
<p>or</p>
<p><code>kubectl create secret generic secret-name --from-literal=foo=secret_value</code></p>
