I'm trying to mount a file using configmap during kubernetes deployment.
I have my application properties as data in my configmap. I'm creating configmap using kustomize
. Kustomize will help to merge two configmaps. When I build kustomize
it returns configmap like
apiVersion: v1
data:
append.properties: |
TEST_PROPERTY_1=5
base.properties: |
TEST_PROPERTY_2=test
kind: ConfigMap
metadata:
name: test-configmap
When I mount this config map it will create two different files. But I want to merge into a single file. my application server will expect a single property file. Can someone help this problem?