diff --git a/nodepool/driver/kubernetes/provider.py b/nodepool/driver/kubernetes/provider.py index 97701c0c6..f18807e12 100644 --- a/nodepool/driver/kubernetes/provider.py +++ b/nodepool/driver/kubernetes/provider.py @@ -277,7 +277,7 @@ class KubernetesProvider(Provider): 'name': label.name, 'image': label.image, 'imagePullPolicy': label.image_pull, - 'command': ["/bin/bash", "-c", "--"], + 'command': ["/bin/sh", "-c"], 'args': ["while true; do sleep 30; done;"], 'workingDir': '/tmp' }] diff --git a/nodepool/driver/openshift/provider.py b/nodepool/driver/openshift/provider.py index 42390fe56..52f0980a7 100644 --- a/nodepool/driver/openshift/provider.py +++ b/nodepool/driver/openshift/provider.py @@ -205,7 +205,7 @@ class OpenshiftProvider(Provider): 'name': label.name, 'image': label.image, 'imagePullPolicy': label.image_pull, - 'command': ["/bin/bash", "-c", "--"], + 'command': ["/bin/sh", "-c"], 'args': ["while true; do sleep 30; done;"], 'workingDir': '/tmp', }