DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Part 03: How to force quotas limit to Kubernetes Storage

5 years ago medium.com
Part 03: How to force quotas limit to Kubernetes Storage

Summary: This is a summary of an article originally published by the source. Read the full original article here →

This blog is a continuation of previous blog series https://goglides.io/2020/03/03/limit-range-kubernetes/ Using LimitRange it is possible to enforce minimum and maximum size of storage resources that can be requested by each PersistentVolumeClaim in a namespace.

Apply the YAML file using: Describe the created object: Now let’s test the constraint working or not, first test lower limits (pvc-limit-lower.yaml) apply YAML, Since limitRange rule saying min storage should be 1Gi, so this PersistentVolumeClaim not satisfying this constraint and hence failed. Now try with higher limits (pvc-limit-higher.yaml) apply YAML, This one is also not satisfying the constraint and failed gracefully. Now test with PersistentVolumeClaim which satisfy the constraint (pvc-limit-matching-constraint.yaml) apply YAML, Describe object, You can see PersistentVolume is created, Written by

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com