kubectl-unlimited

command module
v0.0.1 Latest Latest
Warning

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

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

README

kubectl unlimited ♾️

A kubectl plugin for displaying information about running containers with no limits set in a Kubernetes cluster.

Why would you need this? Because these pesky unlimited containers can affect other workloads in the cluster and even cause node they are running on to become unresponsive.

Have in mind that CPU limits are a somewhat controversial topic, see CPU limits on Kubernetes are an antipattern and Kubernetes: Make your services faster by removing CPU limits.

Installation

Just download the binary from the Releases page and place it in your PATH.

Usage

Usage:
  kubectl unlimited [flags]
  kubectl unlimited [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  cpu         Display information about running containers with no CPU limits set
  help        Help about any command
  memory      Display information about running containers with no memory limits set
  version     Print kubectl-unlimited version

Flags:
      --context string      name of the kubeconfig context to use
  -h, --help                help for kubectl-unlimited
      --kubeconfig string   path to the kubeconfig file
  -l, --labels string       labels to filter pods with
  -n, --namespace string    only analyze pods in this namespace (by default all pods from all namespaces are shown)

Examples

# get containers with either CPU or memory limits unset
$ kubectl unlimited

# get containers with only CPU limits unset
$ kubectl unlimited cpu

# get containers with only memory limits unset
$ kubectl unlimited memory

Filtering output

By default, all unlimited containers from all namespaces are shown. This can be filtered on a namespace or pod label basis using appropriate flags (see Usage). If used, pod labels should be defined in the key1=value1,key2=value2,.. format, e.g.

kubectl unlimited -l app=foo,owner=bar

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳