kube-lineage Kubernetes 集群资源展示 CLI 工具开源项目

我要开发同款
匿名用户2021年11月19日
23阅读
所属分类Google Go、云计算、云原生
授权协议Apache

作品详情

kube-lineage是一个kubectl插件,用来展示Kubernetes集群资源的所有依赖资源或附属资源。

使用

$kube-lineagepodcoredns-5cc79d4bf5-xgvkc--dependenciesNAMESPACENAMEREADYSTATUSAGEkube-systemPod/coredns-5cc79d4bf5-xgvkc1/1Running30m├──Node/k3d-serverTrueKubeletReady30m├──PodSecurityPolicy/system-unrestricted-psp-30mkube-system├──ConfigMap/coredns-30mkube-system├──ReplicaSet/coredns-5cc79d4bf51/130mkube-system│└──Deployment/coredns1/130mkube-system├──Secret/coredns-token-6vsx4-30mkube-system│└──ServiceAccount/coredns-30m│├──ClusterRoleBinding/system:basic-user-30m││└──ClusterRole/system:basic-user-30m│├──ClusterRoleBinding/system:coredns-30m││└──ClusterRole/system:coredns-30m│├──ClusterRoleBinding/system:discovery-30m││└──ClusterRole/system:discovery-30m│├──ClusterRoleBinding/system:public-info-viewer-30m││└──ClusterRole/system:public-info-viewer-30mkube-system│└──RoleBinding/system-unrestricted-svc-acct-psp-rolebinding-30m│└──ClusterRole/system-unrestricted-psp-role-30m│└──PodSecurityPolicy/system-unrestricted-psp-30mkube-system└──ServiceAccount/coredns-30m

安装

通过 krew 安装

$kubectlkrewinstalllineage$kubectllineage--version

从源代码进行安装

$gitclonegit@github.com:tohjustin/kube-lineage.git&&cdkube-lineage$makeinstall$kube-lineage--version
查看全文
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论