A tool for listing Kubernetes resource labels or annotations.
Installation
go install github.com/takahisa/telescope@latest
Usage
# Lists all the labels that a pod has in the specified namespace.
$ telescope -n kube-system label pods
k8s-app=kindnet
k8s-app=kube-dns
k8s-app=kube-proxy
pod-template-generation=1
pod-template-hash=6955765f44
...
# List all the annotations that a pod has in the specified namespace.
$ telescope -n kube-system annot pods
kubernetes.io/config.hash=15e79e27a50d92dc481a5aaaad4399d8
kubernetes.io/config.hash=27a865fad340b7665315c8f924f7c35c
kubernetes.io/config.hash=67c12f125236243ab0e88b8f61755eb7
kubernetes.io/config.hash=ff67867321338ffd885039e188f6b424
...