kubectl exec -it podname bash返回如下信息,修改deployment,添加stdin和tty选项
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
Defaulted container "fast-one" out of: fast-one, agent-sidecar (init)
error: Internal error occurred: error executing command in container: failed to exec in container: failed to start exec "9fa6c9a33fd865a207ccd3a2ac3a4be6cb84c19905cfb8d97857f03faec91092": OCI runtime exec failed: exec failed: unable to start container process: open /dev/pts/0: operation not permitted: unknown
containers:
- image: xxxx.xxxx.xxxx/aaa/bbb:cccc
stdin: true
tty: true
有一种说发是因为runc 版本低,1.1.3.可以替换runc升到更高版本.待确定