此内容没有您所选择的语言版本。
Chapter 56. EntityUserOperatorSpec schema reference
Used in: EntityOperatorSpec
Full list of EntityUserOperatorSpec schema properties
Configures the User Operator.
56.1. Logging 复制链接链接已复制到粘贴板!
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
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
# ...
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
Garbage collector (GC)
Garbage collector logging can also be enabled (or disabled) using the jvmOptions property.
56.2. EntityUserOperatorSpec schema properties 复制链接链接已复制到粘贴板!
| 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. |