title: Using Helm For Deploying Spring Boot Microservice to K8s
body: <p>We have build a few Microservices (MS) which have been deployed to our company's K8s clusters.</p>
  <p>For current deployment, any one of our MSs will be built as a Docker image and they deployed manually using the following steps; and it works fine:</p>
  <ul>
  <li>Create Configmap</li>
  <li>Installing a Service.yaml</li>
  <li>Installing a Deployment.yaml</li>
  <li>Installing an Ingress.yaml</li>
  </ul>
  <p>I'm now looking at Helm v3 to simplify and encapsulate these deployments. I've read a lot of the Helm v3 documentation, but I still haven't found the answer to some simple questions and I hope to get an answer here before absorbing the entire doc along with <em>Go</em> and <em>SPRIG</em> and then finding out it won't fit our needs.</p>
  <p>Our Spring MS has 5 separate <em>application.properties</em> files that are specific to each of our 5 environments. These properties files are simple multi-line <em>key=value</em> format with some comments preceded by <em>#</em>.</p>
  <pre><code># environment based values
  key1=value1
  key2=value2
  </code></pre>
  <p>Using <em>helm create</em>, I installed a chart called <em>./deploy</em> in the root directory which auto-created <em>./templates</em> and a <em>values.yaml</em>.</p>
  <p>The problem is that I need to access the <em>application.properties</em> files outside of the Chart's <em>./deploy</em> directory.</p>
  <p>From helm, I'd like to reference these 2 files from within my <em>configmap.yaml</em>'s Data: section.</p>
  <ul>
  <li>./src/main/resource/dev/application.properties</li>
  <li>./src/main/resources/logback.xml</li>
  </ul>
  <p>And I want to keep these files in their current format, not rewrite them to <em>JSON/YAML</em> format.</p>
  <p>Does Helm v3 allow this?</p>
  <p><a href="https://i.stack.imgur.com/LBKdW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LBKdW.png" alt="enter image description here" /></a></p>