Compare commits
2 Commits
3b6d1f3f84
...
f89dd485b8
Author | SHA1 | Date | |
---|---|---|---|
|
f89dd485b8 | ||
|
3ed5cd92a9 |
@ -12,6 +12,8 @@ kubectl plugin list
|
|||||||
```
|
```
|
||||||
|
|
||||||
## kubectl-rsh
|
## kubectl-rsh
|
||||||
|
Creates a pod on the node and executes a shell on that node.
|
||||||
|
You need cluster admin rights and privileged pod execution rights
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
kubectl rsh [nodeName]
|
kubectl rsh [nodeName]
|
||||||
@ -23,3 +25,9 @@ Usage:
|
|||||||
| KUBECTL_RSH_IMAGE_TAG | latest | Image tag to use |
|
| KUBECTL_RSH_IMAGE_TAG | latest | Image tag to use |
|
||||||
| KUBECTL_RSH_NAMESPACE | default | Namespace to create the rsh pod in |
|
| KUBECTL_RSH_NAMESPACE | default | Namespace to create the rsh pod in |
|
||||||
| KUBECTL_RSH_POD_CREATE_TIMEOUT | 3 | Minutes to wait before failing to create pod |
|
| KUBECTL_RSH_POD_CREATE_TIMEOUT | 3 | Minutes to wait before failing to create pod |
|
||||||
|
|
||||||
|
## kubectl-deprecated_api
|
||||||
|
Lists APIs flagged as deprecated
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
kubectl deprecated-api
|
||||||
|
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'{}[],"'
|
Loading…
x
Reference in New Issue
Block a user