Kubernetes运维工具之kubecm
2
2023-01-06
Kubernetes运维工具之kubecm
官网链接
https://kubecm.cloud/zh-cn/introduction多Kubeconfig 切换
安装
$ brew install kubecm
添加Kubeconfig
$ kubecm add -f xxxxx-config

切换Kubeconfig
$ kubecm switch

Kubectl插件
预装
$ brew install kubectl krew $ kubectl krew krew is the kubectl plugin manager. You can invoke krew through kubectl: "kubectl krew [command]..." Available Commands: completion generate the autocompletion script for the specified shell help Help about any command index Manage custom plugin indexes info Show information about an available plugin install Install kubectl plugins list List installed kubectl plugins search Discover kubectl plugins uninstall Uninstall plugins update Update the local copy of the plugin index upgrade Upgrade installed plugins to newer versions version Show krew version and diagnostics
namespace 插件
安装
$ kubectl krew install ns
查看默认ns
$ kubectl ns


修改操作的ns
$ kubectl ns calico-system Context "apiVersion: v1-136" modified. Active namespace is "calico-system".
Iexec 插件
安装
$ kubectl krew install iexec
使用
$ kubectl iexec {{ pod_name }}


- 0
-
分享