nodeinfo

command module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

kubectl nodeinfo

A kubectl plugin that provides you information for a given node. It will tell you what pods live in the a node and their utilization metrics and limits/requests. You can also find the pods of a node for a particular namespace rather than querying in all namespaces.

Installation

You should use the krew plugin manager to install this plugin.

PR for the plugin to be added in the krew-index is still open so the below command wont work for now.

kubectl krew install nodeinfo

If you want to install it locally, you can pull the repo and run go build .. Alternatively you can utilize the make rules.

dont forget to move the executable in your /usr/local/bin

Usage

kubectl nodeinfo <node>

example:

nodeinfo example

Upcoming features

  • Show the capacity and labels of the node itself
  • Make metrics show as an option instead of having them by default
  • Get information about the containers inside a pod
  • Get the Status of a pod (Running, CrashLoopBackOff etc)
  • (maybe) output to different sources like json and csv. Not really sure if that is useful since this is focusing on the pods of a node.

Similar plugins

There are a couple of similar plugins in the krew-index that you can use.

  • viewnode. The difference with nodeinfo is that viewnode is looking at all node running in your cluster rather than passing a specific node in nodeinfo. There are also some other information that you are getting like the state of the pod (running etc). There are no metrics included. (at least to my knowledge)
  • kubectl-view-allocations. The difference with nodeinfo is that view-allocations focuses heavily on the CPU/Mem allocations in nodes. It also provides information about pods grouped in resources like CPU/Memory. nodeinfo's output is less populated with a main focus on pods running in a given node. view-allocations offers a variety of flags for different things like grouping by namespace and outputting to csv which looks really handy. I think that the purpose of view-allocations is different than nodeinfo but I included it to the list because they share functionality.

LICENSE

Apache 2.0. See LICENSE.

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
pkg
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL