Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can mount any ConfigMap into your ECD by using the extraConfigMapMounts list in the specification. This

An example of when this is useful if is when you want to customize the APL logging configuration for ECDs as described in Customizing APL Logging for ECDs (3.2).

...

  1. Create a ConfigMap in your Kubernetes cluster.

Rw ui textbox macro
typetip

Example - Creating a ConfigMap

Code Block
languagebash
apiVersion: v1
kind: ConfigMap
metadata:
  name: my-config-map
data:
  my-file.txt: |
    Hello world!
  1. Create an ECD with a specification that contains an extraConfigMapMounts list.

Rw ui textbox macro
typetip

Example - Creating ECD with extraConfigMapMounts

Code Block
languagebash
apiVersion: mz.digitalroute.com/v1alpha1
kind: ECDeployment
metadata:
  name: my-ecd
spec:
  jvmArgs:
  - Xms512m
  - Xmx512m
  resources:
    limits:
      memory: 640Mi
    requests:
      memory: 640Mi
  extraConfigMapMounts:
  - configMapName: my-config-map
    mountPath: /mnt/my-config
    name: my-config-vol

The file specified in the ConfigMap will be available in /mnt/my-config/my-file.txt in the created EC pod.

...