fluentd_label.sh.j2 353 B

12345678
  1. #!/bin/bash
  2. {{ openshift_client_binary }} --config=/etc/origin/master/admin.kubeconfig \
  3. label --overwrite node $1 \
  4. {% for k, v in openshift_logging_fluentd_nodeselector.items() %} {{ k }}={{ v }} {% endfor %}
  5. # We sleep here because scheduler will get overwhelmed if we label all nodes at once.
  6. sleep {{ openshift_logging_fluentd_label_delay }}