virtual-kubelet / azure-aci

Things related to Azure Container Instances for Virtual Kubelet
Apache License 2.0
89 stars 71 forks source link

kubectl port-forward not working for aci pods #418

Open alexjebens opened 1 year ago

alexjebens commented 1 year ago

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

helayoty commented 1 year ago

https://github.com/virtual-kubelet/virtual-kubelet/issues/170