Mounting Arbitrary ConfigMaps in ECDs (4.3)
You can mount any ConfigMap into your ECD by using the extraConfigMapMounts
list in the specification.
An example of when this is useful is when you want to customize the APL logging configuration for ECDs as described in https://infozone.atlassian.net/wiki/pages/createpage.action?spaceKey=UEPE4D&title=Customizing%20APL%20Logging%20for%20ECDs%20%284.0%29%20-%20Jaws&linkCreation=true&fromPageId=304350066.
To mount an arbitrary ConfigMap:
Create a ConfigMap in your Kubernetes cluster.
Create an ECD with a specification that contains an
extraConfigMapMounts
list.
The file specified in the ConfigMap will be available in /mnt/my-config/my-file.txt
in the created EC pod.
If you want to inspect the ECD Pod specification, you can use the following kubectl
command:
kubectl exec -it <EC Pod> -- ls -la /mnt/my-config
You can now see that an extra Volume is present:
volumes:
- configMap:
defaultMode: 420
name: my-config-map
name: my-config-vol
and that an extra VolumeMount is present:
volumeMounts:
- mountPath: /mnt/my-config
name: my-config-vol
Â