From 9a6089d73f63777647e6482fad073e29e0ac3b57 Mon Sep 17 00:00:00 2001 From: lucperkins Date: Thu, 12 Jul 2018 14:02:01 -0700 Subject: [PATCH] Change code block type to bash from console --- content/en/docs/reference/kubectl/cheatsheet.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index 5002326ade..28eff23d6b 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -263,21 +263,13 @@ kubectl taint nodes foo dedicated=special-user:NoSchedule List all supported resource types along with their shortnames, [API group](/docs/concepts/overview/kubernetes-api/#api-groups), whether they are [namespaced](/docs/concepts/overview/working-with-objects/namespaces), and [Kind](/docs/concepts/overview/working-with-objects/kubernetes-objects): -```console -$ kubectl api-resources -``` - -### Resource types - -List all supported resource types along with their shortnames, [API group](/docs/concepts/overview/kubernetes-api/#api-groups), whether they are [namespaced](/docs/concepts/overview/working-with-objects/namespaces), and [Kind](/docs/concepts/overview/working-with-objects/kubernetes-objects): - -```console +```bash kubectl api-resources ``` Other operations for exploring API resources: -```console +```bash kubectl api-resources --namespaced=true # All namespaced resources kubectl api-resources --namespaced=false # All non-namespaced resources kubectl api-resources -o name # All resources with simple output (just the resource name)