<p>I am starting the implementation in the project where I work, but I had some doubts.</p>

<ol>
<li><p>I have a project with several profiles spring, and for each I may want to have a replicated amount.</p>

<p>Example:</p>

<ul>
<li>Dev and staging (1 replica)</li>
<li>Production (3 replicas)</li>
</ul>

<p>How should I handle this scenario, creating a deployment file for each profile?</p></li>
<li><p>Where do you usually keep Kubernetes .yml? In a "kubenetes" folder within the project, or a repository just to store these files?</p></li>
</ol>

Rafael Dani da Cunha
<p>You should store them with your code in a build folder. If you are deploying on multiple platforms (AKS, EKS, GKE, OpenShift..) you could create a subfolder for each. </p>

<p>The amount of environment specific configuration should be kept to a bare minimum.
So I would recommend using some templating for the files in your CI/CD pipeline. (Helm for example)</p>

<p>If you don't want to worry about these files you could look into Spinnaker.</p>
