gabeduke / kubectl-zonepeek

Peek the zone for any Nodes, PVs associated with a pod.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kubectl-zonepeek

kubectl-zonepeek is a kubectl plugin written in Go that gathers zone information from nodes and associated Persistent Volumes in a Kubernetes cluster.

Features

  • Retrieves the zone information of nodes and associated Persistent Volumes.
  • Accepts a label selector to identify the pods.

Prerequisites

  • Go 1.16 or higher
  • Access to a Kubernetes cluster and the kubectl command-line tool

Installation

To install kubectl-zonepeek, clone the repository and build the binary:

go install github.com/gabeduke/kubectl-zonepeek@latest

Usage

To use kubectl-zonepeek, you need to pass a label selector to identify the pods:

kubectl zonepeek --label <label-selector>

You can specify the output format (table, json, text) with the --output flag:

kubectl zonepeek --label <label-selector> --output json

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Peek the zone for any Nodes, PVs associated with a pod.


Languages

Language:Go 100.0%