digitalocean / Kubernetes-Starter-Kit-Developers

Hands-on tutorial and Automation stack for an operations-ready DigitalOcean Kubernetes (DOKS) cluster.
761 stars 263 forks source link

Drop function is not working in promtail configuration #204

Open shreymarkandey-materialplus opened 1 year ago

shreymarkandey-materialplus commented 1 year ago
promtail:
  enabled: true
  #
  # Enable Promtail service monitoring
  # serviceMonitor:
  #   enabled: true
  #
  # User defined pipeline stages
  pipelineStages:
    - docker: {}
    - drop:
        source: namespace
        expression: "kube-.*"

Updating it still kube-system logs are showing in loki & if I replace it with any other NS then also loki is showing it Bascially when we apply this configuration its not getting updated inside promtail container

jizusun commented 1 year ago

I fixed the problem with the help here: https://stackoverflow.com/a/75472714