Very similarly to the PeristentVolumeClaim action type, you can also mount Kubernetes ConfigMaps on
containerdeploy actions using the
configmapaction type. (see here for the full reference).
- name: configuration
# The reference to the configmap Deploy
This mounts all the keys in the
datafield on the
my-configmapaction under the
/configdirectory in the container. In this case, you'll find the file
/config/config.propertiesthere, with the value above (
some: data ...) as the file contents.
You can do the same for tests and tasks using the relative test
configmapvolumes can of course also be referenced in
helmactions, since they are deployed as standard ConfigMap resources.