Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 53. EntityTopicOperatorSpec schema reference
Used in: EntityOperatorSpec
Full list of EntityTopicOperatorSpec schema properties
Configures the Topic Operator.
53.1. Logging Link kopierenLink in die Zwischenablage kopiert!
The Topic Operator has its own preconfigured loggers:
| Logger | Description | Default Level |
|---|---|---|
|
| Default logger for all classes | INFO |
|
| Logs HTTP server activity | INFO |
The Topic Operator uses the Apache log4j2 logger implementation. Use the logging property to configure loggers and logger levels.
You can set log levels using either the inline or external logging configuration types.
Specify loggers and levels directly in the custom resource for inline configuration:
Example inline logging configuration
apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
metadata:
name: my-cluster
annotations:
strimzi.io/node-pools: enabled
strimzi.io/kraft: enabled
spec:
kafka:
# ...
entityOperator:
# ...
topicOperator:
watchedNamespace: my-topic-namespace
reconciliationIntervalMs: 60000
logging:
type: inline
loggers:
rootLogger.level: INFO
logger.jetty.level: WARN
# ...
You can define additional loggers by specifying the full class or package name using logger.<name>.name. For example, to configure more detailed logging for the Topic Operator inline:
Example custom inline loggers
# ...
logger.top.name: io.strimzi.operator.topic
logger.top.level: DEBUG
logger.toc.name: io.strimzi.operator.topic.TopicOperator
logger.toc.level: TRACE
Alternatively, you can reference an external ConfigMap containing a complete log4j2.properties file that defines your own log4j2 configuration, including loggers, appenders, and layout configuration:
Example external logging configuration
apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
metadata:
name: my-cluster
annotations:
strimzi.io/node-pools: enabled
strimzi.io/kraft: enabled
spec:
kafka:
# ...
entityOperator:
# ...
topicOperator:
watchedNamespace: my-topic-namespace
reconciliationIntervalMs: 60000
logging:
type: external
valueFrom:
configMapKeyRef:
# name and key are mandatory
name: customConfigMap
key: log4j2.properties
# ...
Garbage collector (GC)
Garbage collector logging can also be enabled (or disabled) using the jvmOptions property.
53.2. EntityTopicOperatorSpec schema properties Link kopierenLink in die Zwischenablage kopiert!
| Property | Property type | Description |
|---|---|---|
| watchedNamespace | string | The namespace the Topic Operator should watch. |
| image | string | The image to use for the Topic Operator. |
| reconciliationIntervalSeconds | integer |
The |
| reconciliationIntervalMs | integer | Interval between periodic reconciliations in milliseconds. |
| zookeeperSessionTimeoutSeconds | integer |
The |
| startupProbe | Pod startup checking. | |
| livenessProbe | Pod liveness checking. | |
| readinessProbe | Pod readiness checking. | |
| resources | CPU and memory resources to reserve. | |
| topicMetadataMaxAttempts | integer |
The |
| logging | Logging configuration. | |
| jvmOptions | JVM Options for pods. |