mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-12 06:54:46 -03:30
* Revert "kubelet: conditionalize staticPodPath location (#12433)"
This reverts commit 082507cff2.
* Add kubelet_static_pod_path to removed variables
This commit is contained in:
@@ -100,8 +100,6 @@ kubelet_make_iptables_util_chains: true
|
||||
kubelet_feature_gates: ["RotateKubeletServerCertificate=true"]
|
||||
kubelet_seccomp_default: true
|
||||
kubelet_systemd_hardening: true
|
||||
# To disable kubelet's staticPodPath (for nodes that don't use static pods like worker nodes)
|
||||
kubelet_static_pod_path: ""
|
||||
# In case you have multiple interfaces in your
|
||||
# control plane nodes and you want to specify the right
|
||||
# IP addresses, kubelet_secure_addresses allows you
|
||||
|
||||
@@ -180,9 +180,6 @@ kube_proxy_ipvs_modules:
|
||||
- ip_vs_wlc
|
||||
- ip_vs_lc
|
||||
|
||||
# Set this option to "" (empty) to disable staticPodPath (See docs/operations/hardening.md)
|
||||
kubelet_static_pod_path: "{{ kube_manifest_dir }}"
|
||||
|
||||
## Enable distributed tracing for kubelet
|
||||
kubelet_tracing: false
|
||||
kubelet_tracing_endpoint: "[::]:4317"
|
||||
|
||||
@@ -22,7 +22,7 @@ enforceNodeAllocatable:
|
||||
- {{ item }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
staticPodPath: "{{ kubelet_static_pod_path }}"
|
||||
staticPodPath: {{ kube_manifest_dir }}
|
||||
cgroupDriver: {{ kubelet_cgroup_driver | default('systemd') }}
|
||||
containerLogMaxFiles: {{ kubelet_logfiles_max_nr }}
|
||||
containerLogMaxSize: {{ kubelet_logfiles_max_size }}
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
# should be in roles/kubernetes/preinstall/tasks/0040-verify-settings.yml
|
||||
- name: Fail if removed variables are used
|
||||
vars:
|
||||
removed_vars: []
|
||||
# Always remove items from this list after the release in comments
|
||||
removed_vars:
|
||||
- kubelet_static_pod_path # 2.31.0
|
||||
removed_vars_found: "{{ query('varnames', '^' + (removed_vars | join('|')) + '$') }}"
|
||||
assert:
|
||||
that: removed_vars_found | length == 0
|
||||
|
||||
Reference in New Issue
Block a user