title: kubernetes configmaps for binary file
body: <p>My kubernetes version is 1.10.4.</p>
  
  <p>I am trying to create a ConfigMap for java keystore files:</p>
  
  <pre><code>kubectl create configmap key-config --from-file=server-keystore=/home/ubuntu/ssl/server.keystore.jks --from-file=server-truststore=/home/ubuntu/ssl/server.truststore.jks --from-file=client--truststore=/home/ubuntu/ssl/client.truststore.jks --append-hash=false
  </code></pre>
  
  <p>It says <code>configmap "key-config" created</code>.</p>
  
  <p>But when I describe the configmap I am getting null value:</p>
  
  <pre><code>$ kubectl describe configmaps key-config
  Name:         key-config
  Namespace:    prod-es
  Labels:       &lt;none&gt;
  Annotations:  &lt;none&gt;
  
  Data
  ====
  Events:  &lt;none&gt;
  </code></pre>
  
  <p>I know my version kubernetes support binary data as configmaps or secrets but I am not sure what is wrong with my approach.</p>
  
  <p>Any input on this is highly appreciated.</p>