This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit ee17a4f2bf56c3045cc380a7b6acf2d3dd2ee4e8 Author: Andrea Cosentino <[email protected]> AuthorDate: Mon May 24 11:38:53 2021 +0200 Added NATS Sink Kamelet --- .../ROOT/assets/images/kamelets/nats-sink.svg | 1 + docs/modules/ROOT/pages/nats-sink.adoc | 62 ++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/docs/modules/ROOT/assets/images/kamelets/nats-sink.svg b/docs/modules/ROOT/assets/images/kamelets/nats-sink.svg new file mode 100644 index 0000000..3202edd --- /dev/null +++ b/docs/modules/ROOT/assets/images/kamelets/nats-sink.svg @@ -0,0 +1 @@ +<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="744.2" height="181.81" viewBox="0 0 744.2 181.81"><defs><style>.cls-1{fill:#29a9de;}.cls-2{fill:#fff;}.cls-3{fill:#33a675;}.cls-4{fill:#365c93;}.cls-5{fill:#8dc341;}</style></defs><title>nats-logo-freelogovectors.net</title><path class="cls-1" d="M2.9,284.1H178c-.06,47.35.08,94.72-.07,142.07-19.05,0-38.1,0-57.14,0-.24,13.25-.06,26.5-.09,39.75q-21.45-19.8-42.83-39.67c-25-.17-50,0-75-.08v-142m28.05,33c0,25.43.0 [...] \ No newline at end of file diff --git a/docs/modules/ROOT/pages/nats-sink.adoc b/docs/modules/ROOT/pages/nats-sink.adoc new file mode 100644 index 0000000..ac6bd0d --- /dev/null +++ b/docs/modules/ROOT/pages/nats-sink.adoc @@ -0,0 +1,62 @@ +// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT += image:kamelets/nats-sink.svg[] NATS Source + +*Provided by: "Apache Software Foundation"* + +Send data to NATS topics. + +== Configuration Options + +The following table summarizes the configuration options available for the `nats-sink` Kamelet: +[width="100%",cols="2,^2,3,^2,^2,^3",options="header"] +|=== +| Property| Name| Description| Type| Default| Example +| *servers {empty}* *| Servers| Comma separated list of NATS Servers| string| | +| *topic {empty}* *| Topic| NATS Topic name| string| | +|=== + +NOTE: Fields marked with ({empty}*) are mandatory. + +== Usage + +This section summarizes how the `nats-sink` can be used in various contexts. + +=== Knative Sink + +The `nats-sink` Kamelet can be used as Knative sink by binding it to a Knative object. + +.nats-sink-binding.yaml +[source,yaml] +---- +apiVersion: camel.apache.org/v1alpha1 +kind: KameletBinding +metadata: + name: nats-sink-binding +spec: + source: + ref: + kind: InMemoryChannel + apiVersion: messaging.knative.dev/v1 + name: mychannel + sink: + ref: + kind: Kamelet + apiVersion: camel.apache.org/v1alpha1 + name: nats-sink + properties: + servers: "The Servers" + topic: "The Topic" + +---- + +Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to. + +Save the `nats-sink-binding.yaml` file into your hard drive, then configure it according to your needs. + +You can run the sink using the following command: + +[source,shell] +---- +kubectl apply -f nats-sink-binding.yaml +---- +// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
