1
0

More than 1 year has passed since last update.

kubectlでNodeGroupごとにNodeの数をカウントする(AWS EKS, Kubernetes)

Last updated at Posted at 2021-09-27

jsonpathの練習として。どのNodeGroupにいくつNodeがあるか見たいときに。

kubectl get nodes -o jsonpath='{range .items[*]}{@.metadata.labels.nodegroup-name}{"\n"}{end}' | sort | uniq -c
  22 nodegroup-foo
   5 nodegroup-bar

参考: kubectlチートシート

関連: kubectlでNodeGroupにあるPodを一覧表示する(AWS EKS, Kubernetes)

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0