Revert "Set exact user for Kubelet services" (#8872)

This reverts commit e375678674.

The workaround of explicitly specifying root for the kubelet unit was
for pulling images from private registry. Kubernetes now have a
dedicated mechanism with imagePullSecret.
This commit is contained in:
Max Gautier
2022-06-01 09:19:02 +02:00
committed by GitHub
parent 2f30ab558a
commit 5512465b34

View File

@ -9,7 +9,6 @@ Wants={{ container_manager }}.service
{% endif %} {% endif %}
[Service] [Service]
User=root
EnvironmentFile=-{{ kube_config_dir }}/kubelet.env EnvironmentFile=-{{ kube_config_dir }}/kubelet.env
ExecStart={{ bin_dir }}/kubelet \ ExecStart={{ bin_dir }}/kubelet \
$KUBE_LOGTOSTDERR \ $KUBE_LOGTOSTDERR \