Skip to content

kubectl port-forward not working for aci pods #418

Open
@alexjebens

Description

@alexjebens

Describe the Issue
Trying to port forward a ACI Pod that exposes a port using kubectl produces:
error: error upgrading connection: unable to upgrade connection: 404 request not found

Steps To Reproduce
kubectl port-forward 7701:7700

Expected behavior
Ideally that it works. Alternatively a better error message and StatusCode (e.g. 501) as well as updated documentation.

Virtual-kubelet version
1.4.5

Kubernetes version
1.23.8

Additional context
Using -v=10 with kubectl yields
round_trippers.go:553] POST https://.azmk8s.io:443/api/v1/namespaces//pods//portforward 404 Not Found

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions