<p>How can I define multiple secrets in one file?
Seems that providing multiple secrets doesn't work.</p>
<pre><code>apiVersion: v1
kind: Secret
metadata:
  name: ca-secret
  labels:
    app.kubernetes.io/managed-by: Helm
type: kubernetes.io/tls
data:
  tls.crt: LS0tLDR
  tls.key: LS0tLDR
apiVersion: v1
kind: Secret
metadata:
  name: envoy-secret
  labels:
    app.kubernetes.io/managed-by: Helm
type: kubernetes.io/tls
data:
  tls.crt: LS0tLS1
  tls.key: LS0tLS1
</code></pre>
<p>I am not able to use multiple files because I need to generate a single template using helm.</p>

RaSta83
<p>You can have separate manifests in one yaml file by separating them with <code>---</code>. This will work:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: Secret
metadata:
  name: ca-secret
  labels:
    app.kubernetes.io/managed-by: Helm
type: kubernetes.io/tls
data:
  tls.crt: LS0tLDR
  tls.key: LS0tLDR
---
apiVersion: v1
kind: Secret
metadata:
  name: envoy-secret
  labels:
    app.kubernetes.io/managed-by: Helm
type: kubernetes.io/tls
data:
  tls.crt: LS0tLS1
  tls.key: LS0tLS1
</code></pre>
