<p>I've this <code>quartz.properties</code> file into <code>src/main/resources</code> folder project:</p>

<pre><code>org.quartz.jobStore.class = net.joelinn.quartz.jobstore.RedisJobStore
org.quartz.jobStore.host = redisbo
</code></pre>

<p>As you can see, I need to change <code>org.quartz.jobStore.host</code> according to current environment.</p>

<p>I mean, according to the environment my project has to be deployed, this value has to change as well.</p>

<p>All my environment are on kubernetes/openshift.</p>

<p>I don't quite figure out how to create a configmap in order to map this property of my <code>src/main/resources/quartz.properties</code>.</p>

<p>Any ideas?</p>

Jordi
<p>I think you can configure as following steps.</p>

<ul>
<li><p>Create <code>configmap</code> using <code>quartz.properties</code> file as follows.</p>

<pre>
    # kubectl create configmap quartz-config --from-file=quartz.properties
</pre></li>
<li><p>set the volume as <code>configmap</code> created as follows.</p>

<pre>
apiVersion: v1
kind: Pod
metadata:
  name: test
spec:
  containers:
    - name: test-container
      image: k8s.gcr.io/busybox
      command: [ "/bin/sh", "-c", "ls /src/main/resources" ]
      volumeMounts:
      - name: config-volume
        mountPath: /src/main/resources
  volumes:
    - name: config-volume
      configMap:
        name: quartz-config
  restartPolicy: Never
</pre></li>
</ul>
