Skip to content

Commit

Permalink
Adding eks-node-viewer plugin (#2914)
Browse files Browse the repository at this point in the history
Co-authored-by: tomhalo <[email protected]>
  • Loading branch information
thbits and tomhalo authored Oct 30, 2024
1 parent a95c8b9 commit 12ea38a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions plugins/eks-node-viewer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# plugin to easily open eks-node-viewer on viewed context
# requires eks-node-viewer installed on system
# https://github.com/awslabs/eks-node-viewer/
plugins:
eks-node-viewer:
shortCut: Shift-X
description: "eks-node-viewer"
scopes:
- node
background: false
command: bash
args:
- -c
- |
env $(kubectl config view --context $CONTEXT --minify -o json | jq -r ".users[0].user.exec.env[] | select(.name == \"AWS_PROFILE\") | \"AWS_PROFILE=\" + .value" && kubectl config view --context $CONTEXT --minify -o json | jq -r ".users[0].user.exec.args | \"AWS_REGION=\" + .[1]") eks-node-viewer --context $CONTEXT --resources cpu,memory --extra-labels karpenter.sh/nodepool,eks-node-viewer/node-age --node-sort=creation=dsc

0 comments on commit 12ea38a

Please sign in to comment.