Skip to content

Commit af5f877

Browse files
committed
Use /bin/bash in kubelet manifest ExecStartPre
1 parent 617ce04 commit af5f877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodeup/pkg/model/kubelet.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func (b *KubeletBuilder) buildSystemdService() *nodetasks.Service {
244244
// @check if we are using bootstrap tokens and file checker
245245
if !b.IsMaster && b.UseBootstrapTokens() {
246246
manifest.Set("Service", "ExecStartPre",
247-
fmt.Sprintf("/usr/bin/bash -c 'while [ ! -f %s ]; do sleep 5; done;'", b.KubeletBootstrapKubeconfig()))
247+
fmt.Sprintf("/bin/bash -c 'while [ ! -f %s ]; do sleep 5; done;'", b.KubeletBootstrapKubeconfig()))
248248
}
249249

250250
manifest.Set("Service", "ExecStart", kubeletCommand+" \"$DAEMON_ARGS\"")

0 commit comments

Comments
 (0)