...
Create a ConfigMap in your Kubernetes cluster.
Rw ui textbox macro |
---|
|
Example - Creating a ConfigMap Code Block |
---|
| apiVersion: v1
kind: ConfigMap
metadata:
name: my-config-map
data:
my-file.txt: |
Hello world! |
|
Create an ECD with a specification that contains an extraConfigMapMounts
list.
Rw ui textbox macro |
---|
|
Example - Creating ECD with extraConfigMapMounts Code Block |
---|
| 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.
...