Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

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

Open
CAlexPac opened this issue Jun 13, 2020 · 2 comments
Open

Comments

@CAlexPac
Copy link

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
Copy link

Facing the same problem even for Kafka DaemonSet

@pardhasm
Copy link

pardhasm commented Jun 16, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants