Seagate / cortx-k8s

CORTX Kubernetes Orchestration Repository
https://github.com/Seagate/cortx
Apache License 2.0
6 stars 47 forks source link

CORTX-33135: cortx-setup logging enhancements #348

Closed keithpine closed 2 years ago

keithpine commented 2 years ago

Description

Add the ability to control more verbose container logging for cortx-setup InitContainers. When configured, setup log files will be re-directed to the container's stdout. This allows setup logs to be captured by cluster logging solutions, and aids in troubleshooting, since logs will be available outside of the containers. The alternative is to exec into a debug container and examine the logs manually.

Configure is performed via global and component setupLoggingDetail values. Valid settings are:

If the global value is set, it can be overridden by the component version (this the opposite of global image settings).

By default, the deployment script uses "component" logging, which is a good balance of logging output. The default chart value is "", or "default". Users of the deployment script can re-configure this with a custom values file.

Breaking change

Type of change

Applicable issues

How was this tested?

Deployed cluster in multiple scenarios:

Additional information

The selection of files to redirect are hand-curated and based on observations of what is being logged during setup.

If CORTX implements it's own console logging in the future for setup, we can remove this.

Checklist

If this change requires newer CORTX or third party image versions:

If this change addresses a CORTX Jira issue:


View rendered README.md View rendered charts/cortx/README.md