You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for Ephemeral Containers in Running Pods via Python Kubernetes Client 通过Python Kubernetes客户端在运行中的Pods里支持临时容器 #2207
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.
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.
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.
@roycaihw:
This request has been marked as needing help from a contributor.
Guidelines
Please ensure that the issue body includes answers to the following questions:
Why are we solving this issue?
To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
Does this issue have zero to low barrier of entry?
How can the assignee reach out to you for help?
For more details on the requirements of such an issue, please see here and ensure that they are met.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Activity
roycaihw commentedon Mar 13, 2024
Is this feature supported on the server side? This doesn't seem to be a client issue.
abhitrip07 commentedon Apr 1, 2024
+1, I think the author is referring to the
kubectl debugAPI https://kubernetes.io/docs/reference/kubectl/generated/kubectl_debug/roycaihw commentedon Apr 1, 2024
/help
Thanks for the explanation. This project is mainly a client library. We didn't aim for feature parity comparing to kubectl which is a CLI tool. We do have some utility methods which support enhanced experience: https://github.com/kubernetes-client/python/tree/master/kubernetes/utils
k8s-ci-robot commentedon Apr 1, 2024
@roycaihw:
This request has been marked as needing help from a contributor.
Guidelines
Please ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met.
If this request no longer meets these requirements, the label can be removed
by commenting with the
/remove-helpcommand.Details
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
hjzccc commentedon Jun 22, 2024
Hi, I think the api actually works, the "ephemeralContainers" field should be in the "spec" field:
cdxiaodong commentedon Jun 28, 2024
yes actually i resolve this question on APril. sorry for what i havent said that