kubernetes jee: Map resources property file
I think you can configure as following steps.
Create
configmap
usingquartz.properties
file as follows.# kubectl create configmap quartz-config --from-file=quartz.properties
set the volume as
configmap
created as follows.apiVersion: v1kind: Podmetadata: name: testspec: 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
I would consider creating an External Service, so you keep your redisbo as it is in your code and use kubernetes to map to external dns. We use this technique a lot.
This guide is super helpful