Chapter 21. Ceph Source
Receive data from an Ceph Bucket, managed by a Object Storage Gateway.
21.1. Configuration Options Copy linkLink copied to clipboard!
The following table summarizes the configuration options available for the ceph-source Kamelet:
| Property | Name | Description | Type | Default | Example |
|---|---|---|---|---|---|
| accessKey * | Access Key | The access key. | string | ||
| bucketName * | Bucket Name | The Ceph Bucket name. | string | ||
| cephUrl * | Ceph Url Address | Set the Ceph Object Storage Address Url. | string | ||
| secretKey * | Secret Key | The secret key. | string | ||
| zoneGroup * | Bucket Zone Group | The bucket zone group. | string | ||
| autoCreateBucket | Autocreate Bucket | Specifies to automatically create the bucket. | boolean | False | |
| delay | Delay | The number of milliseconds before the next poll of the selected bucket. | integer | 500 | |
| deleteAfterRead | Auto-delete Objects | Specifies to delete objects after consuming them. | boolean | True | |
| ignoreBody | Ignore Body |
If true, the Object body is ignored. Setting this to true overrides any behavior defined by the | boolean | False | |
| includeBody | Include Body | If true, the exchange is consumed and put into the body and closed. If false, the Object stream is put raw into the body and the headers are set with the object metadata. | boolean | True | |
| prefix | Prefix | The bucket prefix to consider while searching. | string | folder/ |
* = Fields marked with an asterisk are mandatory.
21.2. Dependencies Copy linkLink copied to clipboard!
21.2.1. Quarkus dependencies Copy linkLink copied to clipboard!
21.3. Usage Copy linkLink copied to clipboard!
21.3.1. Camel JBang usage Copy linkLink copied to clipboard!
21.3.1.1. Prerequisites for JBang Copy linkLink copied to clipboard!
- Install JBang.
You have executed the following command:
jbang app install camel@apache/camel
jbang app install camel@apache/camelCopy to Clipboard Copied! Toggle word wrap Toggle overflow
21.3.1.2. Running a route with JBang Copy linkLink copied to clipboard!
Suppose you have a file named route.yaml with this content:
You can now run it directly through the following command.
camel run route.yaml
camel run route.yaml
21.3.2. Knative Source Copy linkLink copied to clipboard!
You can use the ceph-source Kamelet as a Knative source by binding it to a Knative object.
ceph-source-binding.yaml
21.3.3. Kafka Source Copy linkLink copied to clipboard!
You can use the ceph-source Kamelet as a Kafka source by binding it to a Kafka topic.
ceph-source-binding.yaml