Support for Ephemeral Containers in Running Pods via Python Kubernetes Client 通过Python Kubernetes客户端在运行中的Pods里支持临时容器 #2207
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/feature
Categorizes issue or PR as related to a new feature.
Title(标题):
Support for Ephemeral Containers in Running Pods via Python Kubernetes Client
通过Python Kubernetes客户端在运行中的Pods里支持临时容器
Background(背景):
In the current Kubernetes Python client library, there seems to be no straightforward method to add ephemeral containers to running Pods. The existing method patch_namespaced_pod does not dynamically create an ephemeral container in the running Pods as expected. This feature is crucial for debugging purposes and aligns with Kubernetes' evolving capabilities.
在当前的Kubernetes Python客户端库中,似乎没有直接的方法可以在运行中的Pods中添加临时容器。现有的方法patch_namespaced_pod并不像预期那样在运行中的Pods中动态创建一个临时容器。这个功能对于调试目的非常关键,并且符合Kubernetes不断发展的能力。
Issue(问题):
Currently, attempting to use patch_namespaced_pod to add ephemeral containers does not result in the containers being created in the running Pods. This limits the debugging capabilities and deviates from the expected functionality provided by Kubernetes natively.
当前,尝试使用patch_namespaced_pod来添加临时容器并不会导致在运行中的Pods创建这些容器。这限制了调试能力,并且偏离了Kubernetes原生提供的预期功能。
Conclusion(结论):
It would be beneficial for the Python Kubernetes client to support a dedicated method for adding ephemeral containers to running Pods, similar to the kubectl debug command, enhancing the debugging process and maintaining alignment with Kubernetes' native features.
如果Python Kubernetes客户端能支持一个专门的方法来向运行中的Pods添加临时容器,类似于kubectl debug命令,将有助于增强调试过程,并保持与Kubernetes原生功能的一致性,这将是非常有益的。
The text was updated successfully, but these errors were encountered: