Chapter 54. EntityUserOperatorSpec schema reference
Used in: EntityOperatorSpec
Full list of EntityUserOperatorSpec schema properties
Configures the User Operator.
54.1. Logging Copy linkLink copied to clipboard!
The User Operator has its own preconfigured loggers:
| Logger | Description | Default Level |
|---|---|---|
|
| Default logger for all classes | INFO |
|
| Logs HTTP server activity | INFO |
The User 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:
# ...
userOperator:
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 User Operator inline:
Example custom inline loggers
# ...
logger.uop.name: io.strimzi.operator.user
logger.uop.level: DEBUG
logger.abstractcache.name: io.strimzi.operator.user.operator.cache.AbstractCache
logger.abstractcache.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:
# ...
userOperator:
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.
54.2. EntityUserOperatorSpec schema properties Copy linkLink copied to clipboard!
| Property | Property type | Description |
|---|---|---|
| watchedNamespace | string | The namespace the User Operator should watch. |
| image | string | The image to use for the User Operator. |
| reconciliationIntervalSeconds | integer |
The |
| reconciliationIntervalMs | integer | Interval between periodic reconciliations in milliseconds. |
| zookeeperSessionTimeoutSeconds | integer |
The |
| secretPrefix | string | The prefix that will be added to the KafkaUser name to be used as the Secret name. |
| livenessProbe | Pod liveness checking. | |
| readinessProbe | Pod readiness checking. | |
| resources | CPU and memory resources to reserve. | |
| logging | Logging configuration. | |
| jvmOptions | JVM Options for pods. |