Skip to content

Commit

Permalink
chore: add aks-node-viewer (#590)
Browse files Browse the repository at this point in the history
* chore: add aks-node-viewer

* fix: update make az-node-viewer target

---------

Co-authored-by: Charlie McBride <[email protected]>
  • Loading branch information
tallaxes and charliedmcb authored Dec 2, 2024
1 parent 025fb78 commit 4b1ebfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile-az.mk
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ az-klogs-pretty: ## Pretty Print Karpenter logs
az-kevents: ## Karpenter events
kubectl get events -A --field-selector source=karpenter

az-node-viewer: ## Watch nodes using eks-node-viewer
eks-node-viewer --disable-pricing --node-selector "karpenter.sh/nodepool" # --resources cpu,memory
az-node-viewer: ## Watch nodes using aks-node-viewer
aks-node-viewer # --node-selector "karpenter.sh/nodepool" --resources cpu,memory

az-argvmlist: ## List current VMs owned by Karpenter
az graph query -q "Resources | where type =~ 'microsoft.compute/virtualmachines' | where resourceGroup == tolower('$(AZURE_RESOURCE_GROUP_MC)') | where tags has_cs 'karpenter.sh_nodepool'" \
Expand Down
1 change: 1 addition & 0 deletions hack/toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ tools() {
go install github.com/mattn/[email protected]
go install github.com/google/go-containerregistry/cmd/[email protected]
go install github.com/go-swagger/go-swagger/cmd/[email protected]
go install github.com/Azure/aks-node-viewer/cmd/aks-node-viewer@latest

if ! echo "$PATH" | grep -q "${GOPATH:-undefined}/bin\|$HOME/go/bin"; then
echo "Go workspace's \"bin\" directory is not in PATH. Run 'export PATH=\"\$PATH:\${GOPATH:-\$HOME/go}/bin\"'."
Expand Down

0 comments on commit 4b1ebfb

Please sign in to comment.