Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

You can mount any ConfigMap into your ECD by using the extraConfigMapMounts list in the specification. This is useful if 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

  • No labels