New here, just wanted some help here as to what is causing the following error when I try deploying a cluster:
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 '}'
This is my current elastic-certificate-secrets.yaml file:
---
apiVersion: v1
kind: Secret
metadata:
name: elastic-certificate-p12
type: Opaque
data:
server.p12: {{ (.Files.Get “server.p12”) | b64enc }}
CodePudding user response:
It is not necessary to add ---
when you only have a single resource in your file. You can try removing it and it should work.
This is typically used to separate multiple resources in a file and usually comes "between" two resource definitions.
CodePudding user response:
The problem is likely due to the use of Windows-style double quotes. (Of course, if you are not operating on a windows environment) Change:
“server.p12”
to
"server.p12"