Mounting Arbitrary ConfigMaps in ECDs (3.2)

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 Customizing APL Logging for ECDs (3.2).

To mount an arbitrary ConfigMap:

  1. Create a ConfigMap in your Kubernetes cluster.

  1. 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

Â