成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

[kubectl-resource-view]: 一款用于查看k8s資源使用情況的插件

云計算 云原生
一款自己編寫的k8s 命令行插件,用于查看k8s node和pod資源的 cpu、 memory、 gpu的request 和limit 使用情況。

1.簡介

一款自己編寫的k8s 命令行插件,用于查看k8s node和pod資源的 cpu、 memory、 gpu的request 和limit 使用情況。

2.安裝

可直接解壓下載使用,也可以從github倉庫中進行下載最新版本,支持不同架構,喜歡的麻煩給個小星星,有啥額外的需求可以提issue

https://github.com/bryant-rh/kubectl-resource-view

3.Usage

$ kubectl-resource-view -h

Display Resource (cpu/memory/gpu/podcount) Usage and Request and Limit.

 The resource command allows you to see the resource consumption for nodes or pods.

 This command requires Metrics Server to be correctly configured and working on the server.

Usage:
  kubectl-resource-view [flags] [options]
  kubectl-resource-view [command]

Examples:
  node        Display Resource (cpu/memory/gpu/podcount) usage of nodes
  pod         Display Resource (cpu/memory/gpu)          usage of pods

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  node        Display resource (cpu/memory/gpu/podcount) usage of nodes
  pod         Display resource (cpu/memory/gpu) usage of pods

Flags:
      --as string                      Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
      --as-group stringArray           Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
      --as-uid string                  UID to impersonate for the operation.
      --cache-dir string               Default cache directory (default "/root/.kube/cache")
      --certificate-authority string   Path to a cert file for the certificate authority
      --client-certificate string      Path to a client certificate file for TLS
      --client-key string              Path to a client key file for TLS
      --cluster string                 The name of the kubeconfig cluster to use
      --context string                 The name of the kubeconfig context to use
  -h, --help                           help for kubectl-resource-view
      --insecure-skip-tls-verify       If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
      --kubeconfig string              Path to the kubeconfig file to use for CLI requests.
      --match-server-version           Require server version to match client version
  -n, --namespace string               If present, the namespace scope for this CLI request
      --request-timeout string         The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
  -s, --server string                  The address and port of the Kubernetes API server
      --tls-server-name string         Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used
      --token string                   Bearer token for authentication to the API server
      --user string                    The name of the kubeconfig user to use
  -v, --version                        version for kubectl-resource-view

(1)查看node資源

$ kubectl-resource-view  node -h

Display resource (cpu/memory/gpu/podcount) usage of nodes.

 The resource node command allows you to see the resource consumption of nodes.

Usage:
  kubectl-resource-view node [NAME | -l label]

Aliases:
  node, nodes, no

Examples:
  # Show metrics for all nodes
  kubectl resource-view node

  # Show metrics for a given node
  kubectl resource-view node NODE_NAME

  # Show metrics for the node defined by type name=cpu,memory,gpu,pod
  kubectl resource-view node -t cpu,memory,gpu,pod

Flags:
  -h, --help              help for node
      --no-format         If present, print output without format table
  -l, --selector string   Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
      --sort-by string    If non-empty, sort nodes list using specified field. The field can be either 'cpu' or 'memory'
  -t, --type string       Type information hierarchically (default: All Type)[possible values: cpu,memory,pod,gpu], Multiple can be specified, separated by commas

查看所有節點的cpu,內存,gpu使用情況。

只查看cpu,或者內存資源,或者GPU資源。

-t, --type string   [ cpu,memory,pod,gpu], Multiple  can be specified

圖片

根據cpu或內存使用進行排序。

--sort-by [cpu/memory]

支持指定label 或者node name來查篩選。

-l key1=value1,key2=value2

如只查看gpu節點的gpu資源使用情況。

如只查看A800型號GPU 節點,資源使用情況。

如指定節點名稱,來查看指定節點的對應資源使用情況

圖片

支持類似kubectl 格式顯示。

--no-format

(2)查看pod 資源

$  kubectl-resource-view  pod -h


Display resource (cpu/memory/gpu) usage of pods.

 The 'resource-view pod' command allows you to see the resource consumption of pods.

 Due to the metrics pipeline delay, they may be unavailable for a few minutes since pod creation.

Usage:
  kubectl-resource-view pod [NAME | -l label]

Aliases:
  pod, pods, po

Examples:
  # Show metrics for all pods in the default namespace
  kubectl resource-view pod

  # Show metrics for all pods in the given namespace
  kubectl resource-view pod --namespace=NAMESPACE

  # Show metrics for a given pod
  kubectl resource-view pod POD_NAME

  # Show metrics for the pods defined by label name=myLabel
  kubectl resource-view pod -l name=myLabel

  # Show metrics for the pods defined by type name=cpu,memory,gpu
  kubectl resource-view pod -t cpu,memory,gpu

Flags:
  -A, --all-namespaces          If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.
      --field-selector string   Selector (field query) to filter on, supports '=', '==', and '!='.(e.g. --field-selector key1=value1,key2=value2). The server only supports a limited number of field queries per type.
  -h, --help                    help for pod
      --no-format               If present, print output without format table
  -l, --selector string         Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
      --sort-by string          If non-empty, sort pods list using specified field. The field can be either 'cpu' or 'memory'.
  -t, --type string             Type information hierarchically (default: All Type)[possible values: cpu,memory,gpu],Multiple can be specified, separated by commas

指定namespace 來查看對應pod 資源使用情況。

-n --namespace =NAMESPACE

圖片

指定podname 查看指定pod 資源使用情況。

圖片

只查看cpu,或者內存資源,或者GPU資源。

-t, --type string   [ cpu,memory,pod,gpu], Multiple  can be specified

圖片

根據cpu或內存使用進行排序。

--sort-by [cpu/memory]

支持指定label 篩選。

-l key1=value1,key2=value2
責任編輯:姜華 來源: 運維開發故事
相關推薦

2009-06-16 09:18:26

Linux系統管理系統資源

2010-04-16 10:00:06

Oracle查看表空間

2010-02-03 17:16:58

Linux內存使用

2009-10-21 12:42:20

Linux系統資源操作系統

2010-10-14 16:10:28

MySQL排序

2022-06-09 08:07:15

Shell腳本Linux

2010-09-26 12:45:29

2022-09-26 09:44:10

Linux

2017-01-18 21:57:14

2015-11-09 15:32:34

TorTor網絡隱私網絡

2022-07-13 14:26:26

Linux

2020-02-10 19:50:08

Linux內存使用命令

2009-06-30 14:11:00

Hibernate緩存

2018-07-06 14:52:49

Docker容器云服務

2010-05-12 15:14:59

subversion管

2020-02-04 13:50:09

Linux進程內存使用

2022-06-14 07:56:15

Kubernetes存儲架構K8S

2021-03-26 07:17:38

Linux命令磁盤

2020-06-17 14:10:01

Python內存程序

2018-09-14 16:38:43

FilelightLinux磁盤
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 精品熟人一区二区三区四区 | 国产亚洲一区二区三区在线观看 | a亚洲精品 | 91精品在线播放 | 久久性色| 免费在线视频精品 | 九九热在线视频 | 日韩精品在线一区二区 | 国精日本亚洲欧州国产中文久久 | 国产成人免费视频网站高清观看视频 | 国产一区二区在线看 | 色欧美片视频在线观看 | 亚洲欧美中文字幕 | 狠狠色综合欧美激情 | 一区在线播放 | 日韩欧美亚洲 | 亚洲成人免费视频在线观看 | 99久久精品免费看国产四区 | 精品1区| 天天插天天射天天干 | 久久久久久亚洲欧洲 | 91中文在线观看 | 伊人超碰在线 | 91精品国产一区二区三区 | 国产精品久久国产精品 | 一区二区三区四区在线免费观看 | 国产成人久久精品一区二区三区 | 国产偷录叫床高潮录音 | 在线a视频| 欧美精品一二三 | 午夜专区 | 日一日操一操 | 超碰在线网站 | 欧美在线a | 国产三级精品三级在线观看四季网 | 成人精品免费 | 欧美一二三 | 亚洲黄色在线 | 成人一级视频在线观看 | 日韩欧美第一页 | 天天拍天天操 |