Skip to content

Commit

Permalink
Spawn kubelet with exec
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitrios Karagiannis <dhkarag@gmail.com>
  • Loading branch information
alkar committed May 12, 2020
1 parent c5e35b9 commit da7abc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/master-kubelet.service
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ExecStartPre=/sbin/sysctl -w net.ipv4.tcp_retries2=8
# This is a temporal workaround this upstream Kubernetes issue:
# https://github.com/kubernetes/kubernetes/issues/69015
ExecStartPre=/sbin/sysctl -w fs.inotify.max_user_watches=524288
ExecStart=/bin/sh -c '${kubelet_binary_path} \
ExecStart=/bin/sh -c 'exec ${kubelet_binary_path} \
--config=/etc/kubernetes/config/master-kubelet-conf.yaml \
--hostname-override="$(${get_hostname})" \
--kubeconfig=/var/lib/kubelet/kubeconfig \
Expand Down
2 changes: 1 addition & 1 deletion resources/node-kubelet.service
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ExecStartPre=/sbin/sysctl -w net.ipv4.tcp_retries2=8
# This is a temporal workaround this upstream Kubernetes issue:
# https://github.com/kubernetes/kubernetes/issues/69015
ExecStartPre=/sbin/sysctl -w fs.inotify.max_user_watches=524288
ExecStart=/bin/sh -c '${kubelet_binary_path} \
ExecStart=/bin/sh -c 'exec ${kubelet_binary_path} \
%{ if cloud_provider != "" } --cloud-provider=${cloud_provider} \
%{ endif ~}
--cni-bin-dir=/opt/cni/bin \
Expand Down

0 comments on commit da7abc8

Please sign in to comment.