Mount Trait

The Mount trait can be used to configure volumes mounted on the Integration Pods.

This trait is available in the following profiles: Kubernetes, Knative, OpenShift.

The mount trait is a platform trait and cannot be disabled by the user.

Configuration

Trait properties can be specified when running any integration with the CLI:

$ kamel run --trait mount.[key]=[value] --trait mount.[key2]=[value2] integration.groovy

The following configuration options are available:

Property Type Description

mount.enabled

bool

Deprecated: no longer in use.

mount.configs

[]string

A list of configuration pointing to configmap/secret. The configuration are expected to be UTF-8 resources as they are processed by runtime Camel Context and tried to be parsed as property files. They are also made available on the classpath in order to ease their usage directly from the Route. Syntax: [configmap|secret]:name[/key], where name represents the resource name and key optionally represents the resource key to be filtered

mount.resources

[]string

A list of resources (text or binary content) pointing to configmap/secret. The resources are expected to be any resource type (text or binary content). The destination path can be either a default location or any path specified by the user. Syntax: [configmap|secret]:name[/key][@path], where name represents the resource name, key optionally represents the resource key to be filtered and path represents the destination path

mount.volumes

[]string

A list of Persistent Volume Claims to be mounted. Syntax: [pvcname:/container/path]

mount.hot-reload

bool

Enable "hot reload" when a secret/configmap mounted is edited (default false). The configmap/secret must be marked with camel.apache.org/integration label to be taken in account. The resource will be watched for any kind change, also for changes in metadata.

mount.scan-kamelets-implicit-label-secrets

bool

Deprecated: include your properties in an explicit property file backed by a secret. Let the operator to scan for secret labeled with camel.apache.org/kamelet and camel.apache.org/kamelet.configuration. These secrets are mounted to the application and treated as plain properties file with their key/value list (ie .spec.data["camel.my-property"] = my-value) (default true).