<p>I have defined the <code>values.yaml</code> like the following:</p>
<pre><code>name: custom-streams
image: streams-docker-images
imagePullPolicy: Always
restartPolicy: Always
replicas: 1
port: 8080
nodeSelector:
  nodetype: free
configHocon: |-
  streams {
          monitoring {
            custom {
              uri = ${?URI}
              method = ${?METHOD}
            }
          }
  }
</code></pre>
<p>And <code>configmap.yaml</code> like the following:</p>
<pre><code>apiVersion: v1
kind: ConfigMap
metadata:
  name: custom-streams-configmap
data:
  config.hocon: {{ .Values.configHocon | indent 4}}
</code></pre>
<p>Lastly, I have defined the <code>deployment.yaml</code> like the following:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Values.name }}
spec:
  replicas: {{ default 1 .Values.replicas }}
  strategy: {}
  template:
    spec:
      containers:
      - env:
        {{- range $key, $value := .Values.env }}
        - name: {{ $key }}
          value: {{ $value | quote }}
        {{- end }}
        image: {{ .Values.image }}
        name: {{ .Values.name }}
        volumeMounts:
        - name: config-hocon
          mountPath: /config
        ports:
        - containerPort: {{ .Values.port }}
      restartPolicy: {{ .Values.restartPolicy }}
      volumes:
      - name: config-hocon
        configmap:
          name: custom-streams-configmap
          items:
          - key: config.hocon
            path: config.hocon
status: {}
</code></pre>
<p>When I run the container via:</p>
<pre><code>helm install --name custom-streams custom-streams -f values.yaml --debug --namespace streaming
</code></pre>
<p>Then the pods are running fine, but I cannot see the <code>config.hocon</code> file in the container:</p>
<pre><code>$ kubectl exec -it custom-streams-55b45b7756-fb292 sh -n streaming
/ # ls
...
config
...
/ # cd config/
/config # ls
/config #
</code></pre>
<p>I need the <code>config.hocon</code> written in the <code>/config</code> folder. Can anyone let me know what is wrong with the configurations?</p>

himanshuIIITian
<p>I was able to resolve the issue. The issue was using <code>configmap</code> in place <code>configMap</code> in <code>deployment.yaml</code>:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Values.name }}
spec:
  replicas: {{ default 1 .Values.replicas }}
  strategy: {}
  template:
    spec:
      containers:
      - env:
        {{- range $key, $value := .Values.env }}
        - name: {{ $key }}
          value: {{ $value | quote }}
        {{- end }}
        image: {{ .Values.image }}
        name: {{ .Values.name }}
        volumeMounts:
        - name: config-hocon
          mountPath: /config
        ports:
        - containerPort: {{ .Values.port }}
      restartPolicy: {{ .Values.restartPolicy }}
      volumes:
      - name: config-hocon
        configMap:
          name: custom-streams-configmap
          items:
          - key: config.hocon
            path: config.hocon
status: {}
</code></pre>
