summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master
diff options
context:
space:
mode:
authorClayton Coleman <ccoleman@redhat.com>2016-12-26 17:00:59 -0500
committerAndrew Butcher <abutcher@redhat.com>2017-01-10 16:22:57 -0500
commitd9fe14e9b53590d7949cbdd53cedb89bbc0ee037 (patch)
tree303145a1f1588bd0231c8b2f3c684c9e6657fb73 /roles/openshift_master
parent15054dfdbe77dddbca393c3559c4858d9a2c5087 (diff)
downloadopenshift-d9fe14e9b53590d7949cbdd53cedb89bbc0ee037.tar.gz
openshift-d9fe14e9b53590d7949cbdd53cedb89bbc0ee037.tar.bz2
openshift-d9fe14e9b53590d7949cbdd53cedb89bbc0ee037.tar.xz
openshift-d9fe14e9b53590d7949cbdd53cedb89bbc0ee037.zip
Support openshift_node_port_range for configuring service NodePorts
Sets the appropriate config field if openshift_node_port_range is set and also configures filewalls on each node. firewalld already supports port ranges like "30000-32000", while iptables needs that value converted to the correct "30000:32000" form for use with `--dport`. If not set, no node ports are opened.
Diffstat (limited to 'roles/openshift_master')
-rw-r--r--roles/openshift_master/templates/master.yaml.v1.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_master/templates/master.yaml.v1.j2 b/roles/openshift_master/templates/master.yaml.v1.j2
index 81546c829..fcb8125e9 100644
--- a/roles/openshift_master/templates/master.yaml.v1.j2
+++ b/roles/openshift_master/templates/master.yaml.v1.j2
@@ -123,7 +123,7 @@ kubernetesMasterConfig:
keyFile: master.proxy-client.key
schedulerArguments: {{ openshift_master_scheduler_args | default(None) | to_padded_yaml( level=3 ) }}
schedulerConfigFile: {{ openshift_master_scheduler_conf }}
- servicesNodePortRange: ""
+ servicesNodePortRange: "{{ openshift_node_port_range | default("") }}"
servicesSubnet: {{ openshift.common.portal_net }}
staticNodeNames: {{ openshift_node_ips | default([], true) }}
{% endif %}