Kubernetes Namespaces Source
Provided by: "Apache Software Foundation"
Support Level for this Kamelet is: "Stable"
Consume Events from Kubernetes Namespaces
Configuration Options
The following table summarizes the configuration options available for the kubernetes-namespaces-source
Kamelet:
Dependencies
At runtime, the kubernetes-namespaces-source
Kamelet relies upon the presence of the following dependencies:
-
camel:kubernetes
-
camel:kamelet
-
camel:jackson
Camel JBang usage
Prerequisites
-
You’ve installed JBang.
-
You have executed the following command:
jbang app install camel@apache/camel
Supposing you have a file named route.yaml with this content:
- route:
from:
uri: "kamelet:kubernetes-namespaces-source"
parameters:
.
.
.
steps:
- to:
uri: "kamelet:log-sink"
You can now run it directly through the following command
camel run route.yaml
Kubernetes-namespaces-source Kamelet Description
Authentication methods
This Kamelet connects to Kubernetes using:
-
Service account authentication (recommended in cluster)
-
Kubeconfig file authentication
-
Token-based authentication
Output format
The Kamelet watches Kubernetes namespaces resources and produces event data in JSON format when resources are created, updated, or deleted.
Configuration
The Kamelet supports various Kubernetes connection parameters:
-
namespace
: The Kubernetes namespace to watch (optional) -
Authentication and connection configuration
Usage example
apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: kubernetes-namespaces-source-binding
spec:
source:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: kubernetes-namespaces-source
properties:
namespace: "default"
sink:
ref:
kind: Service
apiVersion: v1
name: my-service