[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

5 天 后