Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set exact user for Kubelet services #2524

Merged
merged 1 commit into from
Mar 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/kubernetes/node/templates/kubelet.docker.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions roles/kubernetes/node/templates/kubelet.host.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions roles/kubernetes/node/templates/kubelet.rkt.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Documentation=https://github.com/GoogleCloudPlatform/kubernetes
Wants=network.target

[Service]
User=root
Restart=on-failure
RestartSec=10s
TimeoutStartSec=0
Expand Down