aylei / aylei/kubectl-debug

使用--agentless --port-forward 参数无法运行

Open
#118 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.3k
Forks
303
PR merge metrics
No merged PRs in 30d

Description

kubectl debug -n ns podname --agentless --port-forward
运行失败

Agent Pod info: [Name:debug-agent-pod-a0df1c92-d63c-11ea-a38e-fa163e0860d3, Namespace:default, Image:aylei/debug-agent:latest, HostPort:10027, ContainerPort:10027]
Waiting for pod debug-agent-pod-a0df1c92-d63c-11ea-a38e-fa163e0860d3 to run...
Error occurred while waiting for pod to run: pod ran to completion
error: pod ran to completion

查询pod状态:
Status: Failed
Reason: PodFitsHostPorts
Message: Pod Predicate PodFitsHostPorts failed

已关闭istio-injection,还是一样报错

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing `kubectl debug -n ns podname --agentless --port-forward` and inspect the reported agent pod status, especially the `PodFitsHostPorts` reason. Done means identifying and addressing the cause of the agent pod failure so this command runs successfully; no source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
cli, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.