helm-wrapper icon indicating copy to clipboard operation
helm-wrapper copied to clipboard

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

Open kf2004 opened this issue 3 years ago • 3 comments

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

kf2004 avatar Apr 27 '22 06:04 kf2004

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

opskumu avatar Apr 27 '22 06:04 opskumu

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

kf2004 avatar Apr 27 '22 06:04 kf2004

centos 测试是可以的哦 @kf2004

opskumu avatar Apr 27 '22 08:04 opskumu