Skip to content

Port Forward example not working #297

Closed
@gittadesushil

Description

@gittadesushil

I am using Port forward example where I need to forward the port of running service. I have service running inside pod on port 3122.
When I redirect it to 8080. The url is localhost:8080 and has UI but I don't see full UI. Only I can see the service name mentioned in Title bar of browser.

Debug:

if (bytesRec == 0 || Encoding.ASCII.GetString(bytes,0,bytesRec).IndexOf("<EOF>") > -1) {  
                            break;  
}

Coming always false Encoding.ASCII.GetString(bytes,0,bytesRec).IndexOf("<EOF>") > -1

But if I execute same using kubectl command then it works perfectly fine.
kubectl port-forward service/dbdashboard 8080:3122 -n my_namespace

Note: k8s cluster is not installed on my system. I am using k8s cluster which is installed on Azure cloud.

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