title: Using create_namespaced_secret API in Kubernetes Python client
body: <p>I have to create a secret like this, but with Python:</p>
  <pre class="lang-sh prettyprint-override"><code>kubectl create secret generic mysecret -n mynamespace \
      --from-literal=etcdpasswd=$(echo -n &quot;PASSWORD&quot; | base64)
  </code></pre>
  <p>How do I do it  using the <code>create_namespaced_secret</code> API of the <code>kubernetes</code> Python client library?</p>