Use /bin/bash in kubelet manifest ExecStartPre

This commit is contained in:
Corey O'Brien 2018-07-11 00:04:13 -04:00
parent 617ce047e6
commit af5f877a38
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ func (b *KubeletBuilder) buildSystemdService() *nodetasks.Service {
// @check if we are using bootstrap tokens and file checker
if !b.IsMaster && b.UseBootstrapTokens() {
manifest.Set("Service", "ExecStartPre",
fmt.Sprintf("/usr/bin/bash -c 'while [ ! -f %s ]; do sleep 5; done;'", b.KubeletBootstrapKubeconfig()))
fmt.Sprintf("/bin/bash -c 'while [ ! -f %s ]; do sleep 5; done;'", b.KubeletBootstrapKubeconfig()))
}
manifest.Set("Service", "ExecStart", kubeletCommand+" \"$DAEMON_ARGS\"")