gpt4 book ai didi

Kubernetes : How to deattach from an attached pod

转载 作者:行者123 更新时间:2023-12-05 01:08:14 25 4
gpt4 key购买 nike

我有一个正在运行的 pod,我使用 kubectl attach -ti mypod 给他输入。

但是,我想从我的 pod 中“分离”并返回到我的终端而不终止我的 pod。我该怎么做?

最佳答案

来自 Kubernetes docs :

To detach from the container, you can type the escape sequence Ctrl+Pfollowed by Ctrl+Q.


更新:

根据@Abdelghani 的反馈:

For the record, this does not work if tty is set to false in thecontainer. I didnt find another way to detach other than killing thepod/container.

关于Kubernetes : How to deattach from an attached pod,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66275978/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com