[root@k8s ~]# kubectl exec -it notification-manager-deployment-7bd887ffb4-jmcgl -n kubesphere-monitoring-system /bin/bash
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] – [COMMAND] instead.
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: “/bin/bash”: stat /bin/bash: no such file or directory: unknown
command terminated with exit code 126
[root@k8s ~]# kubectl exec -it notification-manager-deployment-7bd887ffb4-jmcgl -n kubesphere-monitoring-system /bin/sh
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] – [COMMAND] instead.
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: “/bin/sh”: stat /bin/sh: no such file or directory: unknown
command terminated with exit code 126
进不去pod
5 天 后
官方没人答复一下吗?进不去pod啊
RolandMa1986K零S
17717902379
就是没有 sh 或 bash 命令。你要进这个容器干什么呢?
distroless base image 了解下啊 -> https://github.com/GoogleContainerTools/distroless