<p>I want to automate the use a certificate, that is created by <code>cert-manager</code> as documented <a href="https://cert-manager.io/docs/usage/certificate/" rel="nofollow noreferrer">here</a>, in a Helm chart. For example, the YAML below.</p>

<pre><code>---
apiVersion: v1
kind: Pod
metadata:
  name: mypod
  labels:
    app: mypod
spec:
  containers:
    - name: mypod
      image: repo/image:0.0.0
      imagePullPolicy: Always
      volumeMounts:
        - name: certs
          mountPath: /etc/certs
          readOnly: true
      ports:
        - containerPort: 4443
          protocol: TCP
  volumes:
    - name: certs
      secret:
        secretName: as_created_by_cert-manager
</code></pre>

<p>How do I submit the YAML for getting a <code>Certificate</code> from <code>cert-manager</code> and then plugin the generated <code>Secret</code> into the <code>Pod</code> YAML above, in a Helm chart?</p>

<p>I am posting David's comment as a community wiki answer as requested by the OP:</p>

<blockquote>
  <p>You should be able to write the YAML for the Certificate in the same
  chart, typically in its own file. I'd expect it would work to create
  them together, the generated Pod would show up as "Pending" in kubectl
  get pods output until cert-manager actually creates the matching
  Secret. – David Maze</p>
</blockquote>
