title: GKE, how to avoid DaemonSet being evicted by cluster autoscaler?
body: <p>This is my DaemonSet</p>
  <pre class="lang-yaml prettyprint-override"><code>apiVersion: apps/v1
  kind: DaemonSet
  metadata:
    name: nginx
  spec:
    selector:
      matchLabels:
        run: nginx
    template:
      metadata:
        labels:
          run: nginx
        annotations:
          &quot;cluster-autoscaler.kubernetes.io/enable-ds-eviction&quot;: &quot;false&quot;
          &quot;cluster-autoscaler.kubernetes.io/safe-to-evict&quot;: &quot;false&quot;
      spec:
        containers:
        - image: nginx
          imagePullPolicy: IfNotPresent
          name: nginx
          ports:
          - containerPort: 80
            protocol: TCP
  </code></pre>
  <p>According to the <a href="https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-can-i-enabledisable-eviction-for-a-specific-daemonset" rel="nofollow noreferrer">documentation</a>.</p>
  <p><strong>cluster-autoscaler.kubernetes.io/enable-ds-eviction: &quot;false&quot;</strong> should prevent scaling down.</p>
  <p>But GKE cluster autoscaler ignores this annotation.</p>
  <p>Is there any way to prevent DaemonSet from being evicted by the cluster autoscaler?</p>