From 55890e1b823bd7fdc3f2236dcdb733be1cbbb32a Mon Sep 17 00:00:00 2001 From: Sergey Date: Wed, 3 Apr 2019 11:39:42 +0300 Subject: [PATCH] keep compatibility as it was before (#4268) --- roles/kubernetes/master/defaults/main/kube-proxy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/kubernetes/master/defaults/main/kube-proxy.yml b/roles/kubernetes/master/defaults/main/kube-proxy.yml index b76e3db2e..6dc8d4610 100644 --- a/roles/kubernetes/master/defaults/main/kube-proxy.yml +++ b/roles/kubernetes/master/defaults/main/kube-proxy.yml @@ -87,7 +87,12 @@ kube_proxy_metrics_bind_address: 127.0.0.1:10249 # A string slice of values which specify the addresses to use for NodePorts. # Values may be valid IP blocks (e.g. 1.2.3.0/24, 1.2.3.4/32). # The default empty string slice ([]) means to use all local addresses. -kube_proxy_nodeport_addresses: '[]' +kube_proxy_nodeport_addresses: >- + {%- if kube_proxy_nodeport_addresses_cidr is defined -%} + [{{ kube_proxy_nodeport_addresses_cidr }}] + {%- else -%} + [] + {%- endif -%} # oom-score-adj value for kube-proxy process. Values must be within the range [-1000, 1000] kube_proxy_oom_score_adj: -999