From 6fe74cb35c35761dee67c81df38a935c7e1d311d Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Sat, 24 Oct 2020 16:23:36 +0200 Subject: [PATCH] Add note about 'kubectl describe ns' --- slides/k8s/resource-limits.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/slides/k8s/resource-limits.md b/slides/k8s/resource-limits.md index e4fcc67f..0d213102 100644 --- a/slides/k8s/resource-limits.md +++ b/slides/k8s/resource-limits.md @@ -518,6 +518,26 @@ services.nodeports 0 0 --- +## Viewing a namespace limits and quotas + +- `kubectl describe namespace` will display resource limits and quotas + +.exercise[ + +- Try it out: + ```bash + kubectl describe namespace default + ``` + +- View limits and quotas for *all* namespaces: + ```bash + kubectl describe namespace + ``` + +] + +--- + ## Additional resources - [A Practical Guide to Setting Kubernetes Requests and Limits](http://blog.kubecost.com/blog/requests-and-limits/)