title: tolerations on ECK pods
body: <p>I am using ECK operator to deploy ES cluster on Kubernetes. It is working fine, but now I want to have tolerations for the ES pods so that these pods get scheduled to correct Kubernetes nodes. I am using following yaml to deploy it.</p>
  <pre><code>apiVersion: elasticsearch.k8s.elastic.co/v1
  kind: Elasticsearch
  metadata:
    name: elastic-data-factory
  spec:
    version: 7.14.0
    nodeSets:
      - name: master
        count: 1
        config:
          node.master: true
          node.data: false
          node.ingest: false
        podTemplate:
          spec:
            tolerations:
              - key: &quot;dedicated&quot;
                operator: &quot;Equal&quot;
                value: &quot;esdfnp&quot;
                effect: &quot;NoSchedule&quot;
            containers:
              - name: elasticsearch
                resources:
                  requests:
                    memory: 8Gi
                  limits:
                    memory: 8Gi
      - name: data
        count: 3
        config:
          node.master: false
          node.data: true
          node.ingest: true
        podTemplate:
          spec:
            tolerations:
              - key: &quot;dedicated&quot;
                operator: &quot;Equal&quot;
                value: &quot;esdfnp&quot;
                effect: &quot;NoSchedule&quot;
            containers:
              - name: elasticsearch
                resources:
                  requests:
                    memory: 8Gi
                  limits:
                    memory: 8Gi
  </code></pre>
  <p>This creates stateful sets but does not have any tolerations on them, same with the resulting pods. I am not understanding what is the correct way to add tolerations.</p>
  <p>PS: there are no errors when I apply above YAML.</p>