fluent-bit-kubernetes-logging icon indicating copy to clipboard operation
fluent-bit-kubernetes-logging copied to clipboard

Missing required field "selector" in DaemonSet spec for Elasticsearch

Open CAlexPac opened this issue 5 years ago • 2 comments
trafficstars

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.

CAlexPac avatar Jun 13 '20 22:06 CAlexPac

Facing the same problem even for Kafka DaemonSet

holyevyl avatar Jun 16 '20 11:06 holyevyl

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.

pardhasm avatar Jun 16 '20 21:06 pardhasm