Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PortForward does not work for some of the containers #791

@ghost

Description




Describe the bug

Port forwarding stopped working for some of the containers, in this particular case I can't get to port forward NATS. The error I'm getting is container port must match exposed ports.

To Reproduce
Steps to reproduce the behavior:

  1. Port forward NATS container, enter client port nats/client:4222.

Expected behavior
Port forwarding happens.

Screenshots
image

Versions (please complete the following information):

  • OS: Microsoft Windows 10 Pro 10.0.18362 Build 18362
  • K9s 0.21.1
  • K8s 1.16.6-beta.0

Additional context
NATS pod has 3 containers running and the port I'm trying to forward is exposed. I've also tried nats/client:4222 with no success.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions