加入收藏 | 设为首页 | 会员中心 | 我要投稿 湖南网 (https://www.hunanwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 教程 > 正文

怎样优化Kubernetes的集群打点

发布时间:2021-05-18 21:56:56 所属栏目:教程 来源:互联网
导读:特性 跟踪Kubernetes集群中运行的资源的及时勾当。 处理赏罚Kubernetes尺度资源和自界说资源界说。 跟踪与Pod、容器和节点等资源相干的及时指标。 提供尺度的集群管

提供尺度的集群打点呼吁,譬喻log,scaling,port-forward,restart...

通过别名和热键自界说呼吁快捷方法。

支持扩展K9s插件以建设本身的集群呼吁。

强盛的过滤模式:应承用户向下钻并查察与事变负载相干的资源。

偏差放大:直接深入相识聚集资源的题目。

外面可定制

通过K9s皮肤界说本身的终端外面。

按资源自界说/布置要表现的列。

提供查察最小或完备资源界说的切换

通过Pulses和XRay视图提供聚集资源的概述。

RBAC

支持查察RBAC法则,譬喻聚集/脚色及其关联的绑定。

反向查找断言用户/组或ServiceAccount可以在集群上做什么。

可以直接从K9s内置的基准测试对HTTP services/pods举办基准测试,以查察应用措施的运行环境,并响应地调解资源哀求/限定。

K9s提供利便地遍历Kubernetes资源及其相干资源。

安装

K9s可用于Linux、macOS和Windows平台,可直接参考K9s官方文档,由于很是简朴这里就不再过多赘述。

呼吁

K9s是一个用于查察和打点Kubernetes集群的CLI。接下来我们一路进修一下它的行使要领,感觉下它的便捷和强盛。

辅佐呼吁

k9s help:列出全部可用的CLI选项

# k9s help 

K9s is a CLI to view and manage your Kubernetes clusters. 

 

Usage: 

  k9s [flags] 

  k9s [command] 

 

Available Commands: 

  helpHelp about any command 

  infoPrint configuration info 

  version Print version/build info 

 

Flags: 

  -A, --all-namespaces Launch K9s in all namespaces

  --as string  Username to impersonate for the operation

  --as-group stringArray   Group to impersonate for the operation

  --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

  -c, --command string Specify the default command to view when the application launches

  --context string The name of the kubeconfig context to use

  --demo   Enable demo mode to show keyboard commands

  --headless   Turn K9s header off

  -h, --help   help for k9s

  --insecure-skip-tls-verify   If true, the server's caCertFile will not be checked for validity

  --kubeconfig string  Path to the kubeconfig file to use for CLI requests

  -l, --logLevel stringSpecify a log level (info, warn, debug, error, fatal, panic, trace) (default "info")

  -n, --namespace string   If present, the namespace scope for this CLI request

  --readonly   Disable all commands that modify the cluster

  -r, --refresh intSpecify the default refresh rate as an integer (sec) (default 2)

  --request-timeout string The length of time to wait before giving up on a single server request

  --token string   Bearer token for authentication to the API server

  --user stringThe name of the kubeconfig user to use

 

Use "k9s [command] --help" for more information about a command. 

(编辑:湖南网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读