diff options
author | Jeff Cantrill <jcantril@redhat.com> | 2017-02-06 14:01:09 -0500 |
---|---|---|
committer | Jeff Cantrill <jcantril@redhat.com> | 2017-02-06 14:59:46 -0500 |
commit | 21966b722781bb04b0b7a374685e428b77fd4f0a (patch) | |
tree | 00b6e7121c9600d1934cdfd29b0b2d90d4a20cf5 /roles/openshift_metrics/templates/heapster.j2 | |
parent | 87b0f005ee280540ec7afbd39f1a6b99a4c60ea3 (diff) | |
download | openshift-21966b722781bb04b0b7a374685e428b77fd4f0a.tar.gz openshift-21966b722781bb04b0b7a374685e428b77fd4f0a.tar.bz2 openshift-21966b722781bb04b0b7a374685e428b77fd4f0a.tar.xz openshift-21966b722781bb04b0b7a374685e428b77fd4f0a.zip |
fix 1406057. Allow openshift_metrics nodeselectors for components
Diffstat (limited to 'roles/openshift_metrics/templates/heapster.j2')
-rw-r--r-- | roles/openshift_metrics/templates/heapster.j2 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/openshift_metrics/templates/heapster.j2 b/roles/openshift_metrics/templates/heapster.j2 index eeca03be0..7c837db4d 100644 --- a/roles/openshift_metrics/templates/heapster.j2 +++ b/roles/openshift_metrics/templates/heapster.j2 @@ -18,6 +18,12 @@ spec: name: heapster spec: serviceAccountName: heapster +{% if node_selector is iterable and node_selector | length > 0 %} + nodeSelector: +{% for key, value in node_selector.iteritems() %} + {{key}}: "{{value}}" +{% endfor %} +{% endif %} containers: - name: heapster image: {{openshift_metrics_image_prefix}}metrics-heapster:{{openshift_metrics_image_version}} |