knowstore

command module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 20 Imported by: 0

README

knowstore

A Kubernetes tool that calculates the disk usage of a pod and writes the result to its annotations

Installation

See example.yaml for an example for in-cluster deployment.

Usage

export NODE_NAME="example"

kubectl get pod -A --field-selector "spec.nodeName=$NODE_NAME,status.phase=Running" -o go-template --template '{{range .items}}{{.metadata.namespace}}/{{.metadata.name}}{{"\t"}}{{index .metadata.annotations "com.yankeguo.knowstore/ephemeral-storage.usage-pretty"}}{{"\n"}}{{end}}'

Credits

GUO YANKE, MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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