Update debug-pod-replication-controller.md (#5100)

Fix leading spaces in kubectl commands and unified format.This is causing bash/zsh shells to not to record the executed command in the history.
pull/5066/merge
XsWack 2017-08-23 07:47:33 +08:00 committed by Steve Perry
parent 60a6ed4f4f
commit 9248fca03e
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ case you can try several things:
command. Here are some example command lines that extract just the necessary command. Here are some example command lines that extract just the necessary
information: information:
kubectl get nodes -o yaml | grep '\sname\|cpu\|memory' kubectl get nodes -o yaml | grep '\sname\|cpu\|memory'
kubectl get nodes -o json | jq '.items[] | {name: .metadata.name, cap: .status.capacity}' kubectl get nodes -o json | jq '.items[] | {name: .metadata.name, cap: .status.capacity}'
The [resource quota](/docs/concepts/policy/resource-quotas/) The [resource quota](/docs/concepts/policy/resource-quotas/)
feature can be configured to limit the total amount of feature can be configured to limit the total amount of