-->

DEVOPSZONES

  • Recent blogs

    no matches for kind "DaemonSet" in version "extensions/v1beta1"

    I was configuring the fluentd today and hit with following error. While checking the issue i found that Support for extensions/v1beta1 was removed in v1.16.

    This Problem can  be resolved by
    1. changing apiVersion to "apps/v1"
    2.  Adding a selector
    apiVersion: apps/v1
    kind: DaemonSet
    metadata:
      name: fluentd
      namespace: kube-system
      labels:
        k8s-app: fluentd-logging
        version: v1
        kubernetes.io/cluster-service: "true"
    spec:
      selector:
        matchLabels:
          k8s-app: fluentd-logging
      template:
        metadata:
          labels:
            k8s-app: fluentd-logging
            version: v1
            kubernetes.io/cluster-service: "true"
    
    

    selector:
      matchLabels:
        k8s-app: fluentd-logging
    
    1. made sure that matchLabels selectors (e.g. k8s-app) name should match in spec and template.
      k8s-app: fluentd-logging


    No comments