Skip to content

Commit 34f43d2

Browse files
authored
Revert "kubelet: conditionalize staticPodPath location (#12433)" (#12970)
* Revert "kubelet: conditionalize staticPodPath location (#12433)" This reverts commit 082507c. * Add kubelet_static_pod_path to removed variables
1 parent 052846a commit 34f43d2

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

docs/operations/hardening.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ kubelet_make_iptables_util_chains: true
100100
kubelet_feature_gates: ["RotateKubeletServerCertificate=true"]
101101
kubelet_seccomp_default: true
102102
kubelet_systemd_hardening: true
103-
# To disable kubelet's staticPodPath (for nodes that don't use static pods like worker nodes)
104-
kubelet_static_pod_path: ""
105103
# In case you have multiple interfaces in your
106104
# control plane nodes and you want to specify the right
107105
# IP addresses, kubelet_secure_addresses allows you

roles/kubernetes/node/defaults/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ kube_proxy_ipvs_modules:
180180
- ip_vs_wlc
181181
- ip_vs_lc
182182

183-
# Set this option to "" (empty) to disable staticPodPath (See docs/operations/hardening.md)
184-
kubelet_static_pod_path: "{{ kube_manifest_dir }}"
185-
186183
## Enable distributed tracing for kubelet
187184
kubelet_tracing: false
188185
kubelet_tracing_endpoint: "[::]:4317"

roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ enforceNodeAllocatable:
2222
- {{ item }}
2323
{% endfor %}
2424
{% endif %}
25-
staticPodPath: "{{ kubelet_static_pod_path }}"
25+
staticPodPath: {{ kube_manifest_dir }}
2626
cgroupDriver: {{ kubelet_cgroup_driver | default('systemd') }}
2727
containerLogMaxFiles: {{ kubelet_logfiles_max_nr }}
2828
containerLogMaxSize: {{ kubelet_logfiles_max_size }}

roles/validate_inventory/tasks/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
# should be in roles/kubernetes/preinstall/tasks/0040-verify-settings.yml
99
- name: Fail if removed variables are used
1010
vars:
11-
removed_vars: []
11+
# Always remove items from this list after the release in comments
12+
removed_vars:
13+
- kubelet_static_pod_path # 2.31.0
1214
removed_vars_found: "{{ query('varnames', '^' + (removed_vars | join('|')) + '$') }}"
1315
assert:
1416
that: removed_vars_found | length == 0

0 commit comments

Comments
 (0)