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

Add plugin view-allocations 0.5.0 #294

Merged
merged 5 commits into from
Nov 18, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions plugins/view-allocations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#see https://github.com/kubernetes-sigs/krew/blob/master/docs/DEVELOPER_GUIDE.md
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: view-allocations
spec:
version: "v0.4.0" # required, must be in semver format, prefixed with "v"
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
uri: https://github.com/davidB/kubectl-view-allocations/releases/download/0.4.0/kubectl-view-allocations_0.4.0-x86_64-apple-darwin.tar.gz
sha256: "b37c19d2b372b4a120582d33c1299d827f0c6324fce6548cbff35cffec1f2da3"
files: [{ from: "*", to: "." }]
bin: "./kubectl-view-allocations" # path to the plugin executable after copying files above
- selector: # a regular Kubernetes selector
matchLabels:
os: linux
arch: amd64
uri: https://github.com/davidB/kubectl-view-allocations/releases/download/0.4.0/kubectl-view-allocations_0.4.0-x86_64-unknown-linux-gnu.tar.gz
sha256: "97466fc77bc985bffe72f9c09b5aa9d0f2af4b184d1a20f46cd7bdfae2048a9d"
files: [{ from: "*", to: "." }]
bin: "./kubectl-view-allocations" # path to the plugin executable after copying files above
shortDescription: Prints the environment variables.
homepage: https://github.com/davidB/kubectl-view-allocations # optional, url for the project homepage
description: |
This plugin lists allocations (cpu, memory, gpu,... X requested, limit, allocatable,...).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be worth to briefly explain the difference between kubectl top nodes and your plugin.

Also, could you explain a little more what is the meaning of the columns in your output (should not be here but on the project page). It will help the adoption of your tool, if you elaborate on Request, Limit and how that connects to a given container resource request spec.

try `kubectl view-allocations -h`, `kubectl view-allocations`