Set exact user for Kubelet services
This commit is contained in:
parent
f07734596e
commit
e375678674
3 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ After=docker.service
|
|||
Wants=docker.socket
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
EnvironmentFile={{kube_config_dir}}/kubelet.env
|
||||
ExecStart={{ bin_dir }}/kubelet \
|
||||
$KUBE_LOGTOSTDERR \
|
||||
|
|
|
@ -5,6 +5,7 @@ After=docker.service
|
|||
Wants=docker.socket
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
EnvironmentFile=-{{kube_config_dir}}/kubelet.env
|
||||
{% if kubelet_flexvolumes_plugins_dir is defined %}
|
||||
ExecStartPre=-/bin/mkdir -p {{ kubelet_flexvolumes_plugins_dir }}
|
||||
|
|
|
@ -4,6 +4,7 @@ Documentation=https://github.com/GoogleCloudPlatform/kubernetes
|
|||
Wants=network.target
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Restart=on-failure
|
||||
RestartSec=10s
|
||||
TimeoutStartSec=0
|
||||
|
|
Loading…
Reference in a new issue