Added apiserver extra args variable for kubeadm config (#2291)

This commit is contained in:
Maxim Krasilnikov 2018-02-12 10:29:46 +03:00 committed by GitHub
parent 46284198f8
commit 03c61685fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View file

@ -83,6 +83,7 @@ controller_mgr_custom_flags: []
scheduler_custom_flags: []
## Extra args for k8s components passing by kubeadm
kube_kubeadm_apiserver_extra_args: {}
kube_kubeadm_controller_extra_args: {}
kube_kubeadm_scheduler_extra_args: {}

View file

@ -58,6 +58,9 @@ apiServerExtraArgs:
runtime-config: {{ kube_api_runtime_config | join(',') }}
{% endif %}
allow-privileged: "true"
{% for key in kube_kubeadm_apiserver_extra_args %}
{{ key }}: {{ kube_kubeadm_apiserver_extra_args[key] }}
{% endfor %}
controllerManagerExtraArgs:
node-monitor-grace-period: {{ kube_controller_node_monitor_grace_period }}
node-monitor-period: {{ kube_controller_node_monitor_period }}

View file

@ -115,9 +115,9 @@ spec:
{% if apiserver_custom_flags is string %}
- {{ apiserver_custom_flags }}
{% else %}
{% for flag in apiserver_custom_flags %}
{% for flag in apiserver_custom_flags %}
- {{ flag }}
{% endfor %}
{% endfor %}
{% endif %}
livenessProbe:
httpGet: