Dmi*_*nov 7 kubernetes kubectl aws-eks
kubectl debug我正在尝试通过尝试使用在 aws eks 中默认禁用的临时容器来调试 distroless POD 。我正在使用 aws eks 1.21
\xe2\x9c\x97 kubectl debug -it opentelemetry-collector-agent-6hqvf --image=busybox --target=some-app\n\nerror: ephemeral containers are disabled for this cluster (error from server: "the server could not find the requested resource")\nRun Code Online (Sandbox Code Playgroud)\n那么如何为 EKS 启用它们呢?
\nAWS EKS 1.23 现在包含该功能
\n\xe2\x9c\x97 k exec -ti ebs-csi-node-gn5g6 -- bash \nDefaulted container "ebs-plugin" out of: ebs-plugin, node-driver-registrar, liveness-probe, debugger-sbn42 (ephem)\nOCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown\ncommand terminated with exit code 126\nRun Code Online (Sandbox Code Playgroud)\n并通过临时容器:
\n\xe2\x9c\x97 k debug -ti ebs-csi-node-gn5g6 --image=busybox --target=ebs-plugin\nTargeting container "ebs-plugin". If you don\'t see processes from this container it may be because the container runtime doesn\'t support this feature.\nDefaulting debug container name to debugger-fzpnj.\nIf you don\'t see a command prompt, try pressing enter.\n/ # ls\nbin dev etc home proc root sys tmp usr var\n/ # \nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
2075 次 |
| 最近记录: |