<p>New here, just wanted some help here as to what is causing the following error when I try deploying a cluster:</p>
<pre><code>Error: INSTALLATION FAILED: YAML parse error on kube-prometheus-stack/charts/elasticsearch/templates/elastic-certificate-secrets.yaml: error converting YAML to JSON: yaml: line 1: did not find expected ',' or '}'
</code></pre>
<p>This is my current elastic-certificate-secrets.yaml file:</p>
<pre><code>---
apiVersion: v1
kind: Secret
metadata:
    name: elastic-certificate-p12
type: Opaque
data:
    server.p12: {{ (.Files.Get “server.p12”) | b64enc  }}
</code></pre>

usr18239
<p>It is not necessary to add <code>---</code> when you only have a single resource in your file. You can try removing it and it should work.</p>
<p>This is typically used to separate multiple resources in a file and usually comes &quot;between&quot; two resource definitions.</p>
