kube-logging / logging-operator

Logging operator for Kubernetes
https://kube-logging.dev
Apache License 2.0
1.54k stars 327 forks source link

Hosttailer + eventtailer doesn't support defining resources #1736

Closed jeremych1000 closed 3 months ago

jeremych1000 commented 5 months ago

Describe the bug: I can't define requests and limits for hostrailer and eventtailer. We run Kyverno which forces every pod to have resources defined.

Expected behaviour: There is a resources block in the CR.

Steps to reproduce the bug: error building typed value from config resource: .spec.resources: field not declared in schema

Additional context: https://kube-logging.dev/docs/configuration/crds/extensions/hosttailer_types/

Environment details:

jeremych1000 commented 5 months ago

Also - hosttailer seems to mount as rw. Can it be set as readonly esp. for systemd stuff for example?

pepov commented 4 months ago

sorry I missed this one. You should be able to configure resources using workloadOverrides, the type for that is defined here: https://github.com/cisco-open/operator-tools/blob/72559d15ba7ea02eac08ca9e9e590f3bdcb10dd4/pkg/types/base_types.go#L236

pepov commented 4 months ago

About readwrite mount could you please open a separate issue? That is a valid concern

pepov commented 3 months ago

I'm closing this now, @jeremych1000 can you please open a separate issue for configuring the rw option for the volume mount?