From f5b5d2baed809d3edaeae4c33d17e42b1be399b4 Mon Sep 17 00:00:00 2001 From: lucperkins Date: Mon, 9 Jul 2018 13:17:50 -0700 Subject: [PATCH] Add note on kubectl api-resources command --- .../overview/working-with-objects/namespaces.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/content/en/docs/concepts/overview/working-with-objects/namespaces.md b/content/en/docs/concepts/overview/working-with-objects/namespaces.md index c0de016bbb..cb74056327 100644 --- a/content/en/docs/concepts/overview/working-with-objects/namespaces.md +++ b/content/en/docs/concepts/overview/working-with-objects/namespaces.md @@ -98,4 +98,14 @@ in some namespaces. However namespace resources are not themselves in a namespa And low-level resources, such as [nodes](/docs/admin/node) and persistentVolumes, are not in any namespace. +To see which Kubernetes resources are and aren't in a namespace: + +```shell +# In a namespace +$ kubectl api-resources --namespaced=true + +# Not in a namespace +$ kubectl api-resources --namespaced=false +``` + {{% /capture %}} \ No newline at end of file