Skip to content
New issue

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

k8s启动helm-wrapper,进入容器内部命令报错,kube_config参数path要怎么配置 #56

Open
kf2004 opened this issue Apr 27, 2022 · 3 comments

Comments

@kf2004
Copy link

kf2004 commented Apr 27, 2022

kubectl exec -it helm-wrapper-775d679-x8dzd -c helm-wrapper -n manage -- /bin/bash 或者 /bin/sh

OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: "/bin/bash": stat /bin/bash: no such file or directory": unknown

@opskumu
Copy link
Owner

opskumu commented Apr 27, 2022

@kf2004 因为使用的是 scratch 最小基础镜像,可以使用 nsenter 进入,或者 Dockerfile 基础镜像修改成 ubuntu 或者 debian 之类的哈

@kf2004
Copy link
Author

kf2004 commented Apr 27, 2022

centos:centos7我改成了这个也进不去

@opskumu
Copy link
Owner

opskumu commented Apr 27, 2022

centos 测试是可以的哦 @kf2004

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants