<p>So i have a configmap config.json </p>

<pre><code>{
"apiUrl": "http://application.cloudapp.net/",
"test": "1232"
}
</code></pre>

<p>called 'continuousdeployment'</p>

<p>The pod yaml</p>

<pre><code>    apiVersion: v1
kind: Pod
metadata:
  name: continuousdeployment-ui
spec:
  containers:
  - name: continuousdeployment-ui
    image: release.azurecr.io/release.ccf.ui:2758
    volumeMounts:
    - name: config-volume
      mountPath: app/wwwroot/assets/config
  volumes:
  - name: config-volume
    configMap:
      name: continuousdeployment
</code></pre>

<p>Without the config map set i can see the config file when going to the IP address ./assets/config/config.json and i can view it all fine. when i apply the config map the only part of the json i can then see is:</p>

<pre><code>    {
"apiUrl": 
</code></pre>

<p>So any ideas?</p>

<p>Update - Just amended the config.json to the following</p>

<pre><code>{ 
"test":"1232", 
"apiUrl":"http://applictaion.cloudapp.net/"
}
</code></pre>

<p>and in the browser i can see </p>

<pre><code>{ 
    "test":"1232",
</code></pre>

<p>configmap</p>

<pre><code>    {
  "kind": "ConfigMap",
  "apiVersion": "v1",
  "metadata": {
    "name": "continuousdeployment-ccf-ui-config",
    "namespace": "default",
    "selfLink": "/api/v1/namespaces/default/configmaps/continuousdeployment-ccf-ui-config",
    "uid": "94ee863c-42b3-11e9-8872-36a65af8d9e4",
    "resourceVersion": "235988",
    "creationTimestamp": "2019-03-09T21:37:47Z"
  },
  "data": {
    "config.json": "{\n    \"apiUrl\": \"http://application.cloudapp.net/\"\n}"
  }
}
</code></pre>

<p>even tried this</p>

<pre><code>{
  "kind": "ConfigMap",
  "apiVersion": "v1",
  "metadata": {
    "name": "continuousdeployment-ccf-ui-config1",
    "namespace": "default",
    "selfLink": "/api/v1/namespaces/default/configmaps/continuousdeployment-ccf-ui-config1",
    "uid": "ee50ad25-42c0-11e9-8872-36a65af8d9e4",
    "resourceVersion": "243585",
    "creationTimestamp": "2019-03-09T23:13:21Z"
  },
  "data": {
    "config.json": "{\r\n    \"apiUrl\": \"http://application.cloudapp.net/\"\r\n}"
  }
}
</code></pre>

<p>So if i remove all odd characters and just do the alphabet, when i view the config.json it gets to 'q'</p>

<pre><code>{
  "kind": "ConfigMap",
  "apiVersion": "v1",
  "metadata": {
    "name": "continuousdeployment-ccf-ui-config1",
    "namespace": "default",
    "selfLink": "/api/v1/namespaces/default/configmaps/continuousdeployment-ccf-ui-config1",
    "uid": "ee50ad25-42c0-11e9-8872-36a65af8d9e4",
    "resourceVersion": "244644",
    "creationTimestamp": "2019-03-09T23:13:21Z"
  },
  "data": {
    "config.json": "{abcdefghijklmnopqrstuvwxyz}"
  }
}
</code></pre>

<p>Sorted it!</p>

<pre><code>volumeMounts:
- mountPath: /app/wwwroot/assets/config/config.json
  name: config-volume
  subPath: config.json
</code></pre>

<p>Had to put the following in the pod and now the json is visable and works</p>
