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

kube-capacity: command not found #96

Open
eliassal opened this issue Mar 31, 2023 · 1 comment
Open

kube-capacity: command not found #96

eliassal opened this issue Mar 31, 2023 · 1 comment

Comments

@eliassal
Copy link

Hi I setup this plugin followed instructions, when I issue

kubectl resource-capacity

I get an output as follows

NODE               CPU REQUESTS   CPU LIMITS   MEMORY REQUESTS   MEMORY LIMITS
*                  1700m (34%)    0m (0%)      330Mi (1%)        340Mi (1%)
kubernetes         250m (12%)     0m (0%)      0Mi (0%)          0Mi (0%)
kubernetes-node2   350m (35%)     0m (0%)      90Mi (1%)         0Mi (0%)
kubernetes2        1100m (55%)    0m (0%)      240Mi (4%)        340Mi (5%)

However, whatever commands I use I get errors as follows

kubectl resource-capacity ‐‐sort cpu.limit
Error: unknown command "‐‐sort" for "kube-capacity"

kubectl resource-capacity ‐‐sort cpu.util --util
Error: unknown command "‐‐sort" for "kube-capacity"

kube-capacity
kube-capacity: command not found

Is there any config to add or update following setup? Than ks

@VishnAndr
Copy link

VishnAndr commented May 30, 2023

Double hyphens in front of the sort key are not actualy hyphens in you examples. They should be 2D 2D in hex. But in your command they are actually E2 80 90 E2 80 90 in hex.
Try to copy your command and retype double hyphen manually. Happened with me when I copied command examples from some websites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants