Service Binding Trait

The Service Binding trait allows users to connect to Services in Kubernetes: https://github.com/k8s-service-bindings/spec#service-binding As the specification is still evolving this is subject to change

This trait is available in the following profiles: Kubernetes, Knative, OpenShift.

Configuration

Trait properties can be specified when running any integration with the CLI:

$ kamel run --trait service-binding.[key]=[value] --trait service-binding.[key2]=[value2] integration.groovy

The following configuration options are available:

Property Type Description

service-binding.enabled

bool

Can be used to enable or disable a trait. All traits share this common property.

service-binding.services

[]string

List of Services in the form [[apigroup/]version:]kind:[namespace/]name