Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hosttailer + eventtailer doesn't support defining resources #1736

Open
jeremych1000 opened this issue May 10, 2024 · 1 comment
Open

Hosttailer + eventtailer doesn't support defining resources #1736

jeremych1000 opened this issue May 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jeremych1000
Copy link

jeremych1000 commented May 10, 2024

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:

  • Kubernetes version (e.g. v1.15.2): 1.28.6
  • Cloud-provider/provisioner (e.g. AKS, GKE, EKS, PKE etc): on prem
  • logging-operator version (e.g. 2.1.1): 4.6.0
  • Install method (e.g. helm or static manifests): helm
  • Logs from the misbehaving component (and any other relevant logs): error building typed value from config resource: .spec.resources: field not declared in schema
  • Resource definition (possibly in YAML format) that caused the issue, without sensitive data:
    in logging
  # -- HostTailer config
  hostTailer: 
    name: hosttailer
    # fileTailers:
    #   - name: sample-file
    #     path: /var/log/sample-file
    #     disabled: false
    systemdTailers:
      - name: system-sample
        disabled: false
        maxEntries: 20
        systemdFilter: kubelet.service


  # -- EventTailer config
  eventTailer: 
    name: eventtailer
    image:
      repository: "<..>/kube-logging/eventrouter"
      tag: "0.4.0"
      pullPolicy: IfNotPresent
      imagePullSecrets: []
    pvc:
      accessModes:
        - ReadWriteOnce
      volumeMode: Filesystem
    storage: 1Gi
    storageClassName: standard

/kind bug

@jeremych1000 jeremych1000 added the bug Something isn't working label May 10, 2024
@jeremych1000
Copy link
Author

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

@jeremych1000 jeremych1000 changed the title Hosttailer doesn't support defining resources Hosttailer + eventtailer doesn't support defining resources May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant