Uses a variable to define a custom flag instead of directly.

The flag '--kubelet-preferred-address-types' is now defined as part of
the existing 'apiserver_custom_flags' parameter.
This commit is contained in:
Ayaz Ahmed Khan 2017-07-13 11:29:52 +05:00
parent a2c1d153da
commit baf5d5a761
2 changed files with 2 additions and 3 deletions

View file

@ -60,8 +60,8 @@ kube_oidc_auth: false
# kube_oidc_groups_claim: groups
##Variables for custom flags
apiserver_custom_flags: []
apiserver_custom_flags: ['--kubelet-preferred-address-types=InternalDNS,InternalIP,Hostname,ExternalDNS,ExternalIP']
controller_mgr_custom_flags: []
scheduler_custom_flags: []
scheduler_custom_flags: []

View file

@ -36,7 +36,6 @@ spec:
- --admission-control={{ kube_apiserver_admission_control | join(',') }}
- --service-cluster-ip-range={{ kube_service_addresses }}
- --service-node-port-range={{ kube_apiserver_node_port_range }}
- --kubelet-preferred-address-types=InternalDNS,InternalIP,Hostname,ExternalDNS,ExternalIP
- --client-ca-file={{ kube_cert_dir }}/ca.pem
{% if kube_basic_auth|default(true) %}
- --basic-auth-file={{ kube_users_dir }}/known_users.csv