Skip to content

[Raven-L7] port-forward fail #178

@shyer

Description

@shyer

https://openyurt.io/zh/docs/next/installation/raven-l7-proxy-prepare/

kubectl -n kube-system port-forward pod/yurt-hub-k8s-test-edge-02 2222:22

error: error upgrading connection: unable to upgrade connection: request host 192.168.203.70:6443 and url /portForward/kube-system/yurt-hub-k8s-test-edge-02 is invalid

logs:

I1121 11:43:16.355073 1 manageheader.go:84] ProxyServer: normal request with host 192.168.203.70:6443 and url /portForward/kube-system/yurt-hub-k8s-test-edge-02 is processed by header manager
W1121 11:43:16.355143 1 manageheader.go:173] ProxyServer: raven proxy server not support dest address 192.168.203.70 and request.URL is /portForward/kube-system/yurt-hub-k8s-test-edge-02
E1121 11:43:16.355156 1 interceptor.go:279] ProxyServer: request host 192.168.203.70:6443 and url /portForward/kube-system/yurt-hub-k8s-test-edge-02 is invalid

/portForward/kube-system/yurt-hub-k8s-test-edge-02 len(parts) is 4 < 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions