We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
关于Windows中增加负载命令出现的/bin/bash 不存在解决方案。
Environment (please complete the following information):
问题出现点: 创建 EffectiveHPA之后需要执行增加负载的命令 kubectl run -i --tty load-generator --rm --image=busybox:1.28 --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O- http://php-apache; done" 报错提示C:/Program Files/Git/usr/bin/sh: no such file or directory
kubectl run -i --tty load-generator --rm --image=busybox:1.28 --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O- http://php-apache; done"
解决方案: 如果再windows中的git bash中执行这个命令export KUBECONFIG=${HOME}/.kube/config_crane并不能解决上方的错误 .
export KUBECONFIG=${HOME}/.kube/config_crane
$env:KUBECONFIG="${HOME}/.kube/config_crane"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
关于Windows中增加负载命令出现的/bin/bash 不存在解决方案。
Environment (please complete the following information):
问题出现点:
创建 EffectiveHPA之后需要执行增加负载的命令
kubectl run -i --tty load-generator --rm --image=busybox:1.28 --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O- http://php-apache; done"
报错提示C:/Program Files/Git/usr/bin/sh: no such file or directory
解决方案:
如果再windows中的git bash中执行这个命令
export KUBECONFIG=${HOME}/.kube/config_crane
并不能解决上方的错误 .$env:KUBECONFIG="${HOME}/.kube/config_crane"
kubectl run -i --tty load-generator --rm --image=busybox:1.28 --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O- http://php-apache; done"
就成功了。The text was updated successfully, but these errors were encountered: