title: Kubernetes API for configmap
body: <p>I could get the kubectl working for creating configmap with a set of files with below command </p>
  
  <pre><code>kubectl create configmap configmap2 --from-file foldername
  </code></pre>
  
  <p>where foldername contains files with keys and values</p>
  
  <p>Now I want to create a K8s config map with the same folder using Java. I dont want to use any libraries. Is there any way I can achieve this?</p>