Adds kubectl-deprecated_api
This commit is contained in:
7
kubectl-deprecated_api
Executable file
7
kubectl-deprecated_api
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if ! command -v prom2json > /dev/null; then
|
||||
echo "You need prom2json to use this command"
|
||||
exit 1
|
||||
fi
|
||||
kubectl get --raw /metrics | prom2json | jq -c '.[] | select(.name=="apiserver_requested_deprecated_apis").metrics[].labels' | column -t -s'{}[],"'
|
Reference in New Issue
Block a user