apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaBridge
metadata:
name: my-bridge
spec:
replicas: 3
bootstrapServers: <cluster_name>-cluster-kafka-bootstrap:9092
tls:
trustedCertificates:
- secretName: my-cluster-cluster-cert
certificate: ca.crt
- secretName: my-cluster-cluster-cert
certificate: ca2.crt
authentication:
type: tls
certificateAndKey:
secretName: my-secret
certificate: public.crt
key: private.key
http:
port: 8080
cors:
allowedOrigins: "https://strimzi.io"
allowedMethods: "GET,POST,PUT,DELETE,OPTIONS,PATCH"
consumer:
config:
auto.offset.reset: earliest
producer:
config:
delivery.timeout.ms: 300000
resources:
requests:
cpu: "1"
memory: 2Gi
limits:
cpu: "2"
memory: 2Gi
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
jvmOptions:
"-Xmx": "1g"
"-Xms": "1g"
readinessProbe:
initialDelaySeconds: 15
timeoutSeconds: 5
livenessProbe:
initialDelaySeconds: 15
timeoutSeconds: 5
image: my-org/my-image:latest
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:
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
tls : 3
trustedCertificates :
- secretName : my- cluster- cluster- cert
certificate : ca.crt
- secretName : my- cluster- cluster- cert
certificate : ca2.crt
authentication : 4
type : tls
certificateAndKey :
secretName : my- secret
certificate : public.crt
key : private.key
http : 5
port : 8080
cors : 6
allowedOrigins : "https://strimzi.io"
allowedMethods : "GET,POST,PUT,DELETE,OPTIONS,PATCH"
consumer : 7
config :
auto.offset.reset : earliest
producer : 8
config :
delivery.timeout.ms : 300000
resources : 9
requests :
cpu : "1"
memory : 2Gi
limits :
cpu : "2"
memory : 2Gi
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