From bb9e98cd433143dce57fa642104b7947f97da345 Mon Sep 17 00:00:00 2001 From: nerdondon Date: Sun, 9 Apr 2017 15:12:45 -0700 Subject: [PATCH] Migrate guide to task template --- .../limit-storage-consumption.md | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/docs/tasks/administer-cluster/limit-storage-consumption.md b/docs/tasks/administer-cluster/limit-storage-consumption.md index bde00eb2e7..808d627639 100644 --- a/docs/tasks/administer-cluster/limit-storage-consumption.md +++ b/docs/tasks/administer-cluster/limit-storage-consumption.md @@ -1,18 +1,24 @@ --- title: Limiting Storage Consumption --- +{% capture overview %} This example demonstrates an easy way to limit the amount of storage consumed in a namespace. -The following resources are used in the demonstration: +The following resources are used in the demonstration: [ResourceQuota](/docs/concepts/policy/resource-quotas/), +[LimitRange](/docs/tasks/configure-pod-container/limit-range/), +and [PersistentVolumeClaim](/docs/concepts/storage/persistent-volumes/). -* [Resource Quota](/docs/admin/resourcequota/) -* [Limit Range](/docs/admin/limitrange/) -* [Persistent Volume Claim](/docs/user-guide/persistent-volumes/) +{% endcapture %} -This example assumes you have a functional Kubernetes setup. +{% capture prerequisites %} -## Limiting Storage Consumption +* {% include task-tutorial-prereqs.md %} + +{% endcapture %} + +{% capture steps %} +## Scenario: Limiting Storage Consumption The cluster-admin is operating a cluster on behalf of a user population and the admin wants to control how much storage a single namespace can consume in order to control cost. @@ -69,8 +75,16 @@ spec: requests.storage: "5Gi" ``` +{% endcapture %} + +{% capture discussion %} + ## Summary A limit range can put a ceiling on how much storage is requested while a resource quota can effectively cap the storage consumed by a namespace through claim counts and cumulative storage capacity. The allows a cluster-admin to plan their cluster's storage budget without risk of any one project going over their allotment. + +{% endcapture %} + +{% include templates/task.md %} \ No newline at end of file