Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lens Node Shell - Node-Shell Pod Stuck in Pending Due to Mismatched Node Selector #1857

Open
NArnott opened this issue Dec 23, 2020 · 0 comments
Open

Comments

@NArnott
Copy link

@NArnott NArnott commented Dec 23, 2020

Describe the bug
When attempting to open a shell at the node level, the "node-shell" pod gets stuck in pending and never starts.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Nodes, select a Node and open "Shell"
  2. Terminal window opens below with "Connecting ..." and never moved ahead from that.
  3. From the Pods view, it shows a "node-shell" pod in Pending status, but never changes or starts.

Expected behavior
I expect to get a terminal window running on the Node.

Environment (please complete the following information):

  • Lens Version: 3.6.7
  • OS: Windows 10
  • K8s environment: AWS EKS

Additional context
I expect it to be a mismatch in the pod's node affinity.
My node has the following properties:

  • Name: "ip-10-86-40-168.us-west-2.compute.internal".
  • Label: kubernetes.io/hostname=ip-10-86-40-168.mydomain.com

However, Lens creates the pod with the following nodeSelector:

  nodeSelector:
    kubernetes.io/hostname: ip-10-86-40-168.us-west-2.compute.internal

It seems to be using the Name of the node in the selector, yet matching against the label kubernetes.io/hostname which doesn't always match the Name of the Node, which in my case, it does not match, causing the pod to never start because the matching node doesn't exist.

@NArnott NArnott added the bug label Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.