title: How to deploy a secret resource?
body: <p>I am new to Kubernetes, and trying to wrap my head around how to set secrets. I will try to illustrate with an example. Let's say I have a secret resource that looks like:</p>
  <pre><code>apiVersion: v1
  kind: Secret
  metadata:
    name: big-secrets
  type: Opaque
  data:
    secret-password: &quot;secretMeow&quot;
    secret-key: &quot;angryWoof&quot;
    database-password: &quot;happyWhale&quot;
  </code></pre>
  <p>How do I set up (not sure if set up is the right word here) these secrets using <code>kubectl</code>, and how do I retrieve them? I have tried reading through the following <a href="https://kubernetes.io/docs/tasks/configmap-secret/managing-secret-using-kubectl/" rel="nofollow noreferrer">documentation</a> but I am still not sure how to set up from a yaml file as mentioned above.</p>