diff --git a/docs/content.zh/docs/operations/helm.md b/docs/content.zh/docs/operations/helm.md index 54adfde0e6..16c529a34c 100644 --- a/docs/content.zh/docs/operations/helm.md +++ b/docs/content.zh/docs/operations/helm.md @@ -56,6 +56,10 @@ To override single parameters you can use `--set`, for example: ``` helm install --set image.repository=apache/flink-kubernetes-operator --set image.tag={{< stable >}}{{< version >}}{{< /stable >}}{{< unstable >}}latest{{< /unstable >}} flink-kubernetes-operator helm/flink-kubernetes-operator ``` +Note, you should escape special characters in your `--set` lines, for example: +``` +helm install --set defaultConfiguration."log4j-operator\.properties"=rootLogger.level\=DEBUG flink-kubernetes-operator helm/flink-kubernetes-operator +``` You can also provide your custom values file by using the `-f` flag: ``` diff --git a/docs/content.zh/docs/operations/metrics-logging.md b/docs/content.zh/docs/operations/metrics-logging.md index 8521cad45a..f40c8af937 100644 --- a/docs/content.zh/docs/operations/metrics-logging.md +++ b/docs/content.zh/docs/operations/metrics-logging.md @@ -193,9 +193,13 @@ defaultConfiguration: log4j-operator.properties: |+ # Flink Operator Logging Overrides # rootLogger.level = DEBUG + # The monitor interval in seconds to enable log4j automatic reconfiguration + # monitorInterval = 30 log4j-console.properties: |+ # Flink Deployment Logging Overrides # rootLogger.level = DEBUG + # The monitor interval in seconds to enable log4j automatic reconfiguration + # monitorInterval = 30 ``` {{< hint info >}} diff --git a/docs/content/docs/operations/helm.md b/docs/content/docs/operations/helm.md index 54adfde0e6..16c529a34c 100644 --- a/docs/content/docs/operations/helm.md +++ b/docs/content/docs/operations/helm.md @@ -56,6 +56,10 @@ To override single parameters you can use `--set`, for example: ``` helm install --set image.repository=apache/flink-kubernetes-operator --set image.tag={{< stable >}}{{< version >}}{{< /stable >}}{{< unstable >}}latest{{< /unstable >}} flink-kubernetes-operator helm/flink-kubernetes-operator ``` +Note, you should escape special characters in your `--set` lines, for example: +``` +helm install --set defaultConfiguration."log4j-operator\.properties"=rootLogger.level\=DEBUG flink-kubernetes-operator helm/flink-kubernetes-operator +``` You can also provide your custom values file by using the `-f` flag: ``` diff --git a/docs/content/docs/operations/metrics-logging.md b/docs/content/docs/operations/metrics-logging.md index 8521cad45a..f40c8af937 100644 --- a/docs/content/docs/operations/metrics-logging.md +++ b/docs/content/docs/operations/metrics-logging.md @@ -193,9 +193,13 @@ defaultConfiguration: log4j-operator.properties: |+ # Flink Operator Logging Overrides # rootLogger.level = DEBUG + # The monitor interval in seconds to enable log4j automatic reconfiguration + # monitorInterval = 30 log4j-console.properties: |+ # Flink Deployment Logging Overrides # rootLogger.level = DEBUG + # The monitor interval in seconds to enable log4j automatic reconfiguration + # monitorInterval = 30 ``` {{< hint info >}} diff --git a/helm/flink-kubernetes-operator/conf/log4j-console.properties b/helm/flink-kubernetes-operator/conf/log4j-console.properties index 6ce93d2d45..5fb93a9c21 100644 --- a/helm/flink-kubernetes-operator/conf/log4j-console.properties +++ b/helm/flink-kubernetes-operator/conf/log4j-console.properties @@ -60,3 +60,6 @@ appender.rolling.strategy.max = 10 # Suppress the irrelevant (wrong) warnings from the Netty channel handler logger.netty.name = org.apache.flink.shaded.akka.org.jboss.netty.channel.DefaultChannelPipeline logger.netty.level = OFF + +# The monitor interval in seconds to enable log4j automatic reconfiguration +# monitorInterval = 30 \ No newline at end of file diff --git a/helm/flink-kubernetes-operator/conf/log4j-operator.properties b/helm/flink-kubernetes-operator/conf/log4j-operator.properties index 14ac8f2b78..e6d0318f07 100644 --- a/helm/flink-kubernetes-operator/conf/log4j-operator.properties +++ b/helm/flink-kubernetes-operator/conf/log4j-operator.properties @@ -32,3 +32,6 @@ logger.conf.level = WARN # Avoid logging fallback key INFO messages logger.conf.name = org.apache.flink.configuration.Configuration logger.conf.level = WARN + +# The monitor interval in seconds to enable log4j automatic reconfiguration +# monitorInterval = 30 \ No newline at end of file