Chapter 123. KafkaBridgeHttpConfig schema reference
Used in: KafkaBridgeSpec
Full list of KafkaBridgeHttpConfig schema properties
Configures HTTP access to a Kafka cluster for the Kafka Bridge.
The default HTTP configuration is for the Kafka Bridge to listen on port 8080.
123.1. cors 링크 복사링크가 클립보드에 복사되었습니다!
As well as enabling HTTP access to a Kafka cluster, HTTP properties provide the capability to enable and define access control for the Kafka Bridge through Cross-Origin Resource Sharing (CORS). CORS is a HTTP mechanism that allows browser access to selected resources from more than one origin. To configure CORS, you define a list of allowed resource origins and HTTP access methods. For the origins, you can use a URL or a Java regular expression.
Example Kafka Bridge HTTP configuration
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaBridge
metadata:
name: my-bridge
spec:
# ...
http:
port: 8080
cors:
allowedOrigins: "https://strimzi.io"
allowedMethods: "GET,POST,PUT,DELETE,OPTIONS,PATCH"
# ...
123.2. KafkaBridgeHttpConfig schema properties 링크 복사링크가 클립보드에 복사되었습니다!
| Property | Description |
|---|---|
| port | The port which is the server listening on. |
| integer | |
| cors | CORS configuration for the HTTP Bridge. |