You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/04/26 07:32:13 UTC
[camel-kamelets] 03/03: Added DNS IP Action Kamelet
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch dns-ip
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 8801eb479e7ff0df4f552f17a92889e3d344e7db
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Apr 26 09:31:52 2021 +0200
Added DNS IP Action Kamelet
---
.../ROOT/assets/images/kamelets/dns-ip-action.svg | 1 +
docs/modules/ROOT/pages/dns-ip-action.adoc | 62 ++++++++++++++++++++++
2 files changed, 63 insertions(+)
diff --git a/docs/modules/ROOT/assets/images/kamelets/dns-ip-action.svg b/docs/modules/ROOT/assets/images/kamelets/dns-ip-action.svg
new file mode 100644
index 0000000..dcb3da2
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/dns-ip-action.svg
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="utf-8"?><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 122.879 122.881" enable-background="new 0 0 122.879 122.881" xml:space="preserve"><g><path d="M109.467,89.505c0.182,0,0.359,0.019,0.531,0.053c1.146-1.998,2.191-4.095,3.137-6.287 c0.018-0.043,0.037-0.085,0.059-0.127c1.418-3.346,2.488-6.819,3.209-10.42c0.193-0.961,0.359-1.931,0.5-2.908 c0.639-3.953,0.803-7.97,0.482- [...]
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/dns-ip-action.adoc b/docs/modules/ROOT/pages/dns-ip-action.adoc
new file mode 100644
index 0000000..2a97778
--- /dev/null
+++ b/docs/modules/ROOT/pages/dns-ip-action.adoc
@@ -0,0 +1,62 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/dns-ip-action.svg[] DNS IP Action
+
+*Provided by: "Apache Software Foundation"*
+
+Get an IP from a DNS
+
+The Kamelet expects the following headers to be set:
+
+- `domain` / `ce-domain`: as the domain for which we are looking for the IP
+
+== Configuration Options
+
+The Kamelet does not specify any configuration option.
+
+== Usage
+
+This section summarizes how the `dns-ip-action` can be used in various contexts.
+
+=== Knative Action
+
+The `dns-ip-action` Kamelet can be used as intermediate step in a binding.
+
+.dns-ip-action-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: dns-ip-action-binding
+spec:
+ source:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: timer-source
+ properties:
+ message: "Hello"
+ steps:
+ - ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: dns-ip-action
+ sink:
+ ref:
+ kind: InMemoryChannel
+ apiVersion: messaging.knative.dev/v1
+ name: mychannel
+
+----
+
+Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `dns-ip-action-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the action using the following command:
+
+[source,shell]
+----
+kubectl apply -f dns-ip-action-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT