helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

Can log configuration be added to the chart?

Open Temikus opened this issue 4 years ago • 2 comments

Currently the chart doesn't allow operating the --log <string> flag which is important to us as we've been waiting for a long time for JSON logging and want to get rid of ngrok parsers ASAP.

Thank you.

Jira issue: HELM-34

Temikus avatar May 31 '21 02:05 Temikus

You can already configure logging with statefulset.args: [--log={{ render your config content }}]

I think we can:

  • [ ] Add conf.logging section with enabled: false/true
  • [ ] Add configmap from logging section
  • [ ] Mount it to pods
  • [ ] Pass file to --log-config-file
  • [ ] Or just render to --log directly, easier but more verbose

More details: https://www.cockroachlabs.com/docs/v21.1/configure-logs

sergeyshaykhullin avatar Jun 17 '21 18:06 sergeyshaykhullin

Oh, no, you can't... Because --logtostderr is always applied...

sergeyshaykhullin avatar Jun 17 '21 19:06 sergeyshaykhullin