Skip to content

error: you cannot specify a node name and a selector together #21

@dmitry-mightydevops

Description

@dmitry-mightydevops

Hi @NimbleArchitect

➜ k ice memory -l app.kubernetes.io/name=kafka -n sentry --match 'used>0' --sort '!USED' --show-node --show-type --node-label ops
error: you cannot specify a node name and a selector together

✗  k ice memory -l app.kubernetes.io/name=kafka -n sentry --match 'used>0' --sort '!USED' --show-type --node-label ops
error: you cannot specify a node name and a selector together

✗  k ice memory -l app.kubernetes.io/name=kafka -n sentry --match 'used>0' --sort '!USED' --show-node --show-type
T  NODE                           PODNAME                    CONTAINER  USED       REQUEST  LIMIT  %REQ    %LIMIT
C  ip-10-120-139-77.ec2.internal  sentry-kafka-controller-2  kafka      1227.25Mi  512Mi    1400M  239.70  91.92
C  ip-10-120-154-19.ec2.internal  sentry-kafka-controller-0  kafka      1163.50Mi  512Mi    1400M  227.25  87.14
C  ip-10-120-139-77.ec2.internal  sentry-kafka-controller-1  kafka      1142.08Mi  512Mi    1400M  223.06  85.54

so not sure why -l <label> can't be used alingside --node-labels ops since they're not limiting each other.
I want to select certain pods by label and then see if they're placed on a node with the worklabel ops or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions