Skip to content

Yu-HaoYu/kubemb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubemb

Go 1.16 

​ 这是一个kubectl插件,提供查看deployment对象当前使用的镜像版本与所属Pod资源信息等。


功能

  • 查看镜像版本

  • 查看Pod资源信息


下载插件

curl -LO https://github.com/Yu-HaoYu/kubemb/releases/download/v0.0.2/kubemb
chmod +x ./kubemb
mv ./kubemb /usr/local/bin
ln -s /usr/local/bin/kubemb /usr/local/bin/kubectl-mb

kubemb -v
kubectl mb -v

备注: kubemb 等价 kubectl mb


使用插件

查看镜像版本

# 查看Deployment的image信息
kubectl mb image -n default

NAMESPACE	DEPLOY_NAME		CONTAINER_NAME		IMAGE
default		php-apache		php-apache	        k8s.gcr.io/hpa-example
default		podinfo			podinfod	        stefanprodan/podinfo:0.0.1
default		sample-app		metrics-provider	luxas/autoscale-demo:v0.1.2

查看Pod资源信息

# 查看Deployment的资源信息
kubectl mb cap -n default

NAMESPACE	CONTAINER NAME			CPU REQUESTS	MEMORY REQUESTS	CPU LIMITS	MEMORY LIMITS
default		php-apache			200m		0		500m		0
default		podinfod			1m		32Mi		100m		256Mi
default		metrics-provider	        0		0		0		0

About

This is a kubectl magic box plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages