Ingress Trait
The Ingress trait can be used to expose the service associated with the integration to the outside world with a Kubernetes Ingress.
It’s enabled by default whenever a Service is added to the integration (through the service
trait).
This trait is available in the following profiles: Kubernetes.
Configuration
Trait properties can be specified when running any integration with the CLI:
$ kamel run --trait ingress.[key]=[value] --trait ingress.[key2]=[value2] integration.yaml
The following configuration options are available:
Property | Type | Description |
---|---|---|
|
| Can be used to enable or disable a trait. All traits share this common property. |
|
| The Ingress class name as defined by the Ingress spec See https://kubernetes.io/docs/concepts/services-networking/ingress/ |
|
| The annotations added to the ingress. This can be used to set controller specific annotations, e.g., when using the NGINX Ingress controller: See https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md |
|
| To configure the host exposed by the ingress. |
|
| To configure the path exposed by the ingress (default |
|
| To configure the path type exposed by the ingress. One of |
|
| To automatically add an ingress whenever the integration uses an HTTP endpoint consumer. |
|
| To configure tls hosts |
|
| To configure tls secret name |