top for k8s

ktop

Build Status

A visualized monitoring dashboard for Kubernetes.

kubectl also has top subcommand, but it is not able to:

  • Watch usages regularly for Pod/Node
  • Compare the usage of Pod resources with Node or limits/requests

ktop resolves these problems and has a more graphical dashboard.

Installation

For MacOS:

$ brew tap ynqa/tap
$ brew install ktop

From source codes:

$ go get -u github.com/ynqa/ktop

Usage

Kubernetes monitoring dashboard on terminal

Usage:
  ktop [flags]

Flags:
      --as string                      Username to impersonate for the operation
      --as-group stringArray           Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
      --cache-dir string               Default HTTP cache directory (default "/Users/ynqa/.kube/http-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
  -C, --container-query string         container query (default ".*")
      --context string                 The name of the kubeconfig context to use
  -h, --help                           help for ktop
      --insecure-skip-tls-verify       If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
  -i, --interval duration              set interval (default 1s)
      --kubeconfig string              Path to the kubeconfig file to use for CLI requests.
  -n, --namespace string               If present, the namespace scope for this CLI request
  -N, --node-query string              node query (default ".*")
  -P, --pod-query string               pod query (default ".*")
      --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
      --token string                   Bearer token for authentication to the API server
      --user string                    The name of the kubeconfig user to use
Owner
Software Engineer
null
Similar Resources

A controller to create K8s Ingresses for Openshift routes.

route-to-ingress-operator A controller to create corresponding ingress.networking.k8s.io/v1 resources for route.openshift.io/v1 TODO int port string p

Jan 7, 2022

A K8s ClusterIP HTTP monitoring library based on eBPF

Owlk8s Seamless RED monitoring of k8s ClusterIP HTTP services. This library provides RED (rate,error,duration) monitoring for all(by default but exclu

Jun 16, 2022

A helm v3 plugin to adopt existing k8s resources into a new generated helm chart

helm-adopt Overview helm-adopt is a helm plugin to adopt existing k8s resources into a new generated helm chart, the idea behind the plugin was inspir

Dec 15, 2022

General Pod Autoscaler(GPA) is a extension for K8s HPA, which can be used not only for serving, also for game.

General Pod Autoscaler(GPA) is a extension for K8s HPA, which can be used not only for serving, also for game.

Introduction General Pod Autoscaler(GPA) is a extension for K8s HPA, which can be used not only for serving, also for game. Features Compatible with a

Aug 19, 2022

Running OpenFaas Pro on Linode K8s (feat. Aiven and Pulumi)

Running OpenFaas Pro on Linode K8s (feat. Aiven and Pulumi) Alex Ellis did a great job, when he wrote a tutorial about Event-driven OpenFaaS with Mana

Apr 26, 2022

基于 K8S 的云应用平台 后端代码

基于 K8S 的云应用平台 后端代码

cloudApp 基于 K8S 的云应用平台 cloud-app是基于k8s的简单易用的云应用平台,借助它可以快速安装部署各种应用,或者一键安装helm chart包,大幅提升k8s应用部署的效率。注意cloud-app的定位是应用的安装部署等操作,不是k8s的管理界面。 这里是后端代码,前端代码见

Jan 8, 2023

The k8s-generic-webhook is a library to simplify the implementation of webhooks for arbitrary customer resources (CR) in the operator-sdk or controller-runtime.

k8s-generic-webhook The k8s-generic-webhook is a library to simplify the implementation of webhooks for arbitrary customer resources (CR) in the opera

Nov 24, 2022

Kubedd – Check migration issues of Kubernetes Objects while K8s upgrade

Kubedd – Check migration issues of Kubernetes Objects while K8s upgrade

Dec 19, 2022

Converts your k8s YAML to a cdk8s Api Object.

kube2cdk8s Converts your k8s YAML to a cdk8s Api Object. Uses Pulumi's kube2pulumi as a base. Dependencies 1. pulumi cli 2. pulumi kubernetes provider

Oct 18, 2022
Comments
  • Update source code installation for newbies

    Update source code installation for newbies

    Hello,

    I don't know much about go package management, and struggled quite some time to install ktop. Here is how I ended up doing it.

    If there's a better way that works on a bare system, I'd be glad to know!

  • brew tap fails

    brew tap fails

    ❯ brew tap ynqa/tap
    ==> Tapping ynqa/tap
    Cloning into '/usr/local/Homebrew/Library/Taps/ynqa/homebrew-tap'...
    remote: Enumerating objects: 15, done.
    remote: Counting objects: 100% (15/15), done.
    remote: Compressing objects: 100% (14/14), done.
    remote: Total 15 (delta 4), reused 0 (delta 0), pack-reused 0
    Receiving objects: 100% (15/15), done.
    Resolving deltas: 100% (4/4), done.
    Error: Invalid formula: /usr/local/Homebrew/Library/Taps/ynqa/homebrew-tap/diffy.rb
    diffy: Calling bottle :unneeded is disabled! There is no replacement.
    Please report this issue to the ynqa/tap tap (not Homebrew/brew or Homebrew/core):
      /usr/local/Homebrew/Library/Taps/ynqa/homebrew-tap/diffy.rb:6
    
    Error: Invalid formula: /usr/local/Homebrew/Library/Taps/ynqa/homebrew-tap/ktop.rb
    ktop: Calling bottle :unneeded is disabled! There is no replacement.
    Please report this issue to the ynqa/tap tap (not Homebrew/brew or Homebrew/core):
      /usr/local/Homebrew/Library/Taps/ynqa/homebrew-tap/ktop.rb:6
    
    Error: Cannot tap ynqa/tap: invalid syntax in tap!
    
  • Distribute via krew?

    Distribute via krew?

    :wave: Hello, maintainer of the kubectl plugin manager krew here.

    What do you think about making your plugin available via krew? You would benefit from

    • Greater visibility due krew's large user basis.
    • Easier installs.
    • Seamless upgrades for new plugin versions.

    Krew already has over 60 plugins and more are coming in. See our development guide if you're interested. Probably you'll need to come up with a new name, though. Please see our naming guide for inspiration.

  • Could not find requested resource

    Could not find requested resource

    On requesting for a specific namespace(e.g. ehcache-demo), it throws the following error:-

    ktop -n ehcache-demo
    
    Error: the server could not find the requested resource (get nodes.metrics.k8s.io): the server could not find the requested resource (get pods.metrics.k8s.io): the server could not find the requested resource (get pods.metrics.k8s.io)
    
K8s-cinder-csi-plugin - K8s Pod Use Openstack Cinder Volume

k8s-cinder-csi-plugin K8s Pod Use Openstack Cinder Volume openstack volume list

Jul 18, 2022
K8s-ingress-health-bot - A K8s Ingress Health Bot is a lightweight application to check the health of the ingress endpoints for a given kubernetes namespace.

k8s-ingress-health-bot A K8s Ingress Health Bot is a lightweight application to check the health of qualified ingress endpoints for a given kubernetes

Jan 2, 2022
K8s-go-structs - All k8s API Go structs

k8s-api go types Why? Its nice to have it all in a single package. . |-- pkg |

Jul 17, 2022
runtime - an abstraction library on top of the Open Policy Agent (OPA)

runtime - an abstraction library on top of the Open Policy Agent (OPA) Introduction The "runtime" project is a library that sits on top of OPA. The go

Nov 7, 2022
fabric 1.4 bdls protocol on top of the SmartBFT 1.4 project

Hyperledger Fabric Note: This is a read-only mirror of the formal Gerrit repository, where active development is ongoing. Issue tracking is handled in

Feb 22, 2022
k8s-image-swapper Mirror images into your own registry and swap image references automatically.
k8s-image-swapper Mirror images into your own registry and swap image references automatically.

k8s-image-swapper Mirror images into your own registry and swap image references automatically. k8s-image-swapper is a mutating webhook for Kubernetes

Dec 27, 2022
:recycle: Now you can easily rollback to previous deployed images whatever you want on k8s environment

EasyRollback EasyRollback is aim to easy rollback to previous images that deployed on k8s environment Installation You should have go installation fir

Dec 24, 2022
go-zero 从零到 k8s 部署

启动: 注意事项: dockerfile 文件配置了 LOCAL_HOST 环境变量 1、项目目录下执行 ./docker.sh 脚本生成 rpc服务docker镜像 ./docker.sh 2、docker-compose-db 创建 mysql redis etcd 容器 执行命令

Dec 7, 2022
Kilo is a multi-cloud network overlay built on WireGuard and designed for Kubernetes (k8s + wg = kg)

Kilo Kilo is a multi-cloud network overlay built on WireGuard and designed for Kubernetes. Overview Kilo connects nodes in a cluster by providing an e

Jan 1, 2023
A k8s vault webhook is a Kubernetes webhook that can inject secrets into Kubernetes resources by connecting to multiple secret managers
A k8s vault webhook is a Kubernetes webhook that can inject secrets into Kubernetes resources by connecting to multiple secret managers

k8s-vault-webhook is a Kubernetes admission webhook which listen for the events related to Kubernetes resources for injecting secret directly from sec

Oct 15, 2022