Browse Source
require-kubeconfig is deprecated since K8s v1.8
pull/2146/head
abelgana
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
roles/kubernetes/node/templates/kubelet.kubeadm.env.j2
|
@ -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 }} \ |
|
|