<p>apiVersion: v1
kind: ConfigMap
metadata:
name: kibana</p>
<pre><code>namespace: the-project
  labels:
    app: kibana
    env: dev
data:
  # kibana.yml is mounted into the Kibana container
  # see https://github.com/elastic/kibana/blob/master/config/kibana.yml
  # Kubernetes Ingress is used to route kib.the-project.d4ldev.txn2.com
  kibana.yml: |- server.name: kib.the-project.d4ldev.txn2.com server.host: &quot;0&quot; elasticsearch.url: http://elasticsearch:9200 
</code></pre>
<p>this is my config.yml file. when I try to  create this project, I get this error</p>
<pre><code>error: error parsing configmap.yml: error converting YAML to JSON: yaml: line 13: did not find expected comment or line break
</code></pre>
<p>I can't get rid of the error even after removing the space in line 13 column 17</p>

ashique
<p>The yml content can be directly put on multiple lines, formatted like a real <code>yaml</code>, take a look at the following example:</p>
<pre><code>data:
  # kibana.yml is mounted into the Kibana container
  # see https://github.com/elastic/kibana/blob/master/config/kibana.yml
  # Kubernetes Ingress is used to route kib.the-project.d4ldev.txn2.com
  kibana.yml: |-
    server:
      name: kib.the-project.d4ldev.txn2.com
      host: &quot;0&quot;
    elasticsearch.url: http://elasticsearch:9200
</code></pre>
<p>This works when put in a ConfigMap, it should work even if provided to a HELM Chart (depending on how the HELM templates are written)</p>
