Skip to content

Commit

Permalink
Added DNS Dig Action Kamelet
Browse files Browse the repository at this point in the history
  • Loading branch information
oscerd authored and nicolaferraro committed Apr 26, 2021
1 parent b17f49d commit 50425e7
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions docs/modules/ROOT/pages/dns-dig-action.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
= image:kamelets/dns-dig-action.svg[] DNS DIG Action

*Provided by: "Apache Software Foundation"*

Query a DNS through Dig

The Kamelet expects the following headers to be set:

- `domain-name` / `ce-domain-name`: as the domain for which we are querying the DNS

- `dns-type` / `ce-dns-type`: as the DNS type

If the domain-name header won't be set the body will be used as domain name.

If the dns-type header won't be set, the DNS Type A will be used.

== Configuration Options

The Kamelet does not specify any configuration option.

== Usage

This section summarizes how the `dns-dig-action` can be used in various contexts.

=== Knative Action

The `dns-dig-action` Kamelet can be used as intermediate step in a binding.

.dns-dig-action-binding.yaml
[source,yaml]
----
apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: dns-dig-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-dig-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-dig-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-dig-action-binding.yaml
----
// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

0 comments on commit 50425e7

Please sign in to comment.