-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cluster Operator dynamic logging configuration (#3328)
* co dyn log Signed-off-by: Stanislav Knot <[email protected]> * rename files Signed-off-by: Stanislav Knot <[email protected]> * delete file Signed-off-by: Stanislav Knot <[email protected]> * default conf Signed-off-by: Stanislav Knot <[email protected]> * commit Signed-off-by: Stanislav Knot <[email protected]> * remove redundant vars Signed-off-by: Stanislav Knot <[email protected]> * Sam's comments Signed-off-by: Stanislav Knot <[email protected]> * consistency Signed-off-by: Stanislav Knot <[email protected]> * comment Signed-off-by: Stanislav Knot <[email protected]> * docu Signed-off-by: Stanislav Knot <[email protected]> * docomments Signed-off-by: Stanislav Knot <[email protected]> * rebase + move to 0.20.0 Signed-off-by: Stanislav Knot <[email protected]> * addressing comments Signed-off-by: Stanislav Knot <[email protected]> * avoid logging Signed-off-by: Stanislav Knot <[email protected]> * another comment Signed-off-by: Stanislav Knot <[email protected]> * Tom's comments Signed-off-by: Stanislav Knot <[email protected]>
- Loading branch information
Showing
32 changed files
with
180 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
#!/usr/bin/env bash | ||
export JAVA_CLASSPATH=lib/[email protected]@[email protected]@:@project.dist.classpath@ | ||
export JAVA_MAIN=io.strimzi.operator.cluster.Main | ||
|
||
if [ -f /opt/strimzi/custom-config/log4j2.properties ]; then | ||
# if ConfigMap was not mounted and thus this file was not created, use properties file from the classpath | ||
export JAVA_OPTS="${JAVA_OPTS} -Dlog4j2.configurationFile=file:/opt/strimzi/custom-config/log4j2.properties" | ||
else | ||
echo "Configuration file log4j2.properties not found. Using default static logging setting. Dynamic updates of logging configuration will not work." | ||
fi | ||
exec "${STRIMZI_HOME}/bin/launch_java.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...charts/helm2/strimzi-kafka-operator/templates/050-ConfigMap-strimzi-cluster-operator.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: {{ .Values.logConfigMap }} | ||
data: | ||
log4j2.properties: | | ||
name = COConfig | ||
monitorInterval = 30 | ||
appender.console.type = Console | ||
appender.console.name = STDOUT | ||
appender.console.layout.type = PatternLayout | ||
appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n | ||
rootLogger.level = INFO | ||
rootLogger.appenderRefs = stdout | ||
rootLogger.appenderRef.console.ref = STDOUT | ||
rootLogger.additivity = false | ||
# Kafka AdminClient logging is a bit noisy at INFO level | ||
logger.kafka.name = org.apache.kafka | ||
logger.kafka.level = WARN | ||
logger.kafka.additivity = false | ||
# Zookeeper is very verbose even on INFO level -> We set it to WARN by default | ||
logger.zookeepertrustmanager.name = org.apache.zookeeper | ||
logger.zookeepertrustmanager.level = WARN | ||
logger.zookeepertrustmanager.additivity = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.