# Basic configuration (required)
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaBridge
metadata:
name: my-bridge
spec:
# Replicas (required)
replicas: 3
# Kafka bootstrap servers (required)
bootstrapServers: <cluster_name>-cluster-kafka-bootstrap:9092
# HTTP configuration (required)
http:
port: 8080
# CORS configuration (optional)
cors:
allowedOrigins: "https://strimzi.io"
allowedMethods: "GET,POST,PUT,DELETE,OPTIONS,PATCH"
# Resources requests and limits (recommended)
resources:
requests:
cpu: "1"
memory: 2Gi
limits:
cpu: "2"
memory: 2Gi
# TLS configuration (optional)
tls:
trustedCertificates:
- secretName: my-cluster-cluster-cert
pattern: "*.crt"
- secretName: my-cluster-cluster-cert
certificate: ca2.crt
# Authentication (optional)
authentication:
type: tls
certificateAndKey:
secretName: my-secret
certificate: public.crt
key: private.key
# Consumer configuration (optional)
consumer:
config:
auto.offset.reset: earliest
# Producer configuration (optional)
producer:
config:
delivery.timeout.ms: 300000
# Logging configuration (optional)
logging:
type: inline
loggers:
logger.bridge.level: INFO
# Enabling DEBUG just for send operation
logger.send.name: "http.openapi.operation.send"
logger.send.level: DEBUG
# JVM options (optional)
jvmOptions:
"-Xmx": "1g"
"-Xms": "1g"
# Readiness probe (optional)
readinessProbe:
initialDelaySeconds: 15
timeoutSeconds: 5
# Liveness probe (optional)
livenessProbe:
initialDelaySeconds: 15
timeoutSeconds: 5
# Custom image (optional)
image: my-org/my-image:latest
# Pod template (optional)
template:
pod:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: application
operator: In
values:
- postgresql
- mongodb
topologyKey: "kubernetes.io/hostname"
bridgeContainer:
env:
- name: OTEL_SERVICE_NAME
value: my-otel-service
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "http://otlp-host:4317"
# Tracing configuration (optional)
tracing:
type: opentelemetry
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaBridge
metadata:
name: my-bridge
spec:
replicas: 3
1
bootstrapServers: <cluster_name>-cluster-kafka-bootstrap:9092
2
http:
3
port: 8080
cors:
4
allowedOrigins: "https://strimzi.io"
allowedMethods: "GET,POST,PUT,DELETE,OPTIONS,PATCH"
resources:
5
requests:
cpu: "1"
memory: 2Gi
limits:
cpu: "2"
memory: 2Gi
tls:
6
trustedCertificates:
- secretName: my-cluster-cluster-cert
pattern: "*.crt"
- secretName: my-cluster-cluster-cert
certificate: ca2.crt
authentication:
7
type: tls
certificateAndKey:
secretName: my-secret
certificate: public.crt
key: private.key
consumer:
8
config:
auto.offset.reset: earliest
producer:
9
config:
delivery.timeout.ms: 300000
logging:
10
type: inline
loggers:
logger.bridge.level: INFO
logger.send.name: "http.openapi.operation.send"
logger.send.level: DEBUG
jvmOptions:
11
"-Xmx": "1g"
"-Xms": "1g"
readinessProbe:
12
initialDelaySeconds: 15
timeoutSeconds: 5
livenessProbe:
initialDelaySeconds: 15
timeoutSeconds: 5
image: my-org/my-image:latest
13
template:
14
pod:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: application
operator: In
values:
- postgresql
- mongodb
topologyKey: "kubernetes.io/hostname"
bridgeContainer:
15
env:
- name: OTEL_SERVICE_NAME
value: my-otel-service
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "http://otlp-host:4317"
tracing:
type: opentelemetry
16
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow