fluent / fluent-bit-kubernetes-logging

Fluent Bit Kubernetes Daemonset
Apache License 2.0
468 stars 248 forks source link

Missing required field "selector" in DaemonSet spec for Elasticsearch #78

Open CAlexPac opened 4 years ago

CAlexPac commented 4 years ago

After changing the apiVersion value to apps/v1, now I have an issue with the missing selector for the spec section. What should the value be? I've tried with:

  selector:
    matchLabels:
      name: fluent-bit

but it does not work.

holyevyl commented 4 years ago

Facing the same problem even for Kafka DaemonSet

pardhasm commented 4 years ago

I also faced the same issue. It got fixed after trying with

apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: fluent-bit
  namespace: logging
  labels:
    k8s-app: fluent-bit-logging
    version: v1
    kubernetes.io/cluster-service: "true"
spec:
  selector:
    matchLabels:
      k8s-app: fluent-bit-logging

@CAlexPac you have to give one of the labels of the DS.