Merge pull request #2146 from abelgana/master
Manage deprecated kubelet option
This commit is contained in:
commit
ccd9cc3dce
2 changed files with 6 additions and 0 deletions
|
@ -17,7 +17,9 @@ KUBELET_HOSTNAME="--hostname-override={{ kube_override_hostname }}"
|
||||||
{# start kubeadm specific settings #}
|
{# start kubeadm specific settings #}
|
||||||
--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf \
|
--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf \
|
||||||
--kubeconfig={{ kube_config_dir }}/kubelet.conf \
|
--kubeconfig={{ kube_config_dir }}/kubelet.conf \
|
||||||
|
{% if kube_version | version_compare('v1.8', '<') %}
|
||||||
--require-kubeconfig \
|
--require-kubeconfig \
|
||||||
|
{% endif %}
|
||||||
--authorization-mode=Webhook \
|
--authorization-mode=Webhook \
|
||||||
--client-ca-file={{ kube_cert_dir }}/ca.crt \
|
--client-ca-file={{ kube_cert_dir }}/ca.crt \
|
||||||
--pod-manifest-path={{ kube_manifest_dir }} \
|
--pod-manifest-path={{ kube_manifest_dir }} \
|
||||||
|
|
|
@ -45,7 +45,11 @@ KUBELET_HOSTNAME="--hostname-override={{ kube_override_hostname }}"
|
||||||
{% set kubelet_args_dns %}{{ kubelet_args_cluster_dns }} --cluster-domain={{ dns_domain }} --resolv-conf={{ kube_resolv_conf }}{% endset %}
|
{% set kubelet_args_dns %}{{ kubelet_args_cluster_dns }} --cluster-domain={{ dns_domain }} --resolv-conf={{ kube_resolv_conf }}{% endset %}
|
||||||
|
|
||||||
{# Location of the apiserver #}
|
{# Location of the apiserver #}
|
||||||
|
{% if kube_version | version_compare('v1.8', '<') %}
|
||||||
{% set kubelet_args_kubeconfig %}--kubeconfig={{ kube_config_dir}}/node-kubeconfig.yaml --require-kubeconfig{% endset %}
|
{% set kubelet_args_kubeconfig %}--kubeconfig={{ kube_config_dir}}/node-kubeconfig.yaml --require-kubeconfig{% endset %}
|
||||||
|
{% else %}
|
||||||
|
{% set kubelet_args_kubeconfig %}--kubeconfig={{ kube_config_dir}}/node-kubeconfig.yaml{% endset %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if standalone_kubelet|bool %}
|
{% if standalone_kubelet|bool %}
|
||||||
{# We are on a master-only host. Make the master unschedulable in this case. #}
|
{# We are on a master-only host. Make the master unschedulable in this case. #}
|
||||||
|
|
Loading…
Reference in a new issue