<p>I have kubernetes file with arguments that I am propagating through the <code>args</code>. Everything works OK!
Instead of the <code>args</code> can I read the configuration from some <code>.ini</code> or properties file or configMap ? I cannot find example for using the values from properties file or configMap instead of the <code>args</code> properties.
Or what will be the proposed best approach how these values should be read and how I should modify my <code>deployment YAML</code>.
Thanks!</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: ads
spec:
  replicas: 1
  template:
    metadata:
      name: ads
    spec:
      containers:
      - name: ads
        image: repo/ads:test1
        #args:
        args: [&quot;-web_server&quot;, &quot;10.1.1.1&quot;,
               &quot;-web_name&quot;, &quot;WEB_Test1&quot;,
               &quot;-server_name&quot;, &quot;ads&quot;]
  selector:
    matchLabels:
      app: ads
</code></pre>

vel
<p>Sure you can, here's the official K8s <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/" rel="nofollow noreferrer">example</a> how to store properties in ConfigMap and how to access them in your container. If this document doesn't meet your requirement, do update your question with the reason and your exact expectation.</p>
